source: mainline/uspace/dist/src/python/modules.py@ 77578e8

Last change on this file since 77578e8 was 77578e8, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Whittle down more unlicensed files using my best guess as to the intended licensing

  • Property mode set to 100644
File size: 406 bytes
Line 
1#!/usr/bin/python
2#
3# SPDX-FileCopyrightText: 2022 HelenOS Project
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8import sys
9
10for m in sys.builtin_module_names:
11 print("Built-in module '%s'." % m)
12
13try:
14 import pkgutil
15 for (loader, name, ispkg) in pkgutil.iter_modules():
16 print("Loadable module '%s'." % name)
17except ImportError:
18 print("Cannot determine list of loadable modules (pkgutil not found)!")
19
20
Note: See TracBrowser for help on using the repository browser.