~sheosi/helenos/lua

« back to all changes in this revision

Viewing changes to uspace/dist/src/python/modules.py

  • Committer: Sergio Tortosa (sheosi)
  • Date: 2013-12-22 14:13:23 UTC
  • mfrom: (2032.1.12 mainline)
  • Revision ID: sertorbe@gmail.com-20131222141323-gbiqm4j2w9sbjty5
MergedĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
import sys
 
4
 
 
5
for m in sys.builtin_module_names:
 
6
        print("Built-in module '%s'." % m)
 
7
 
 
8
try:
 
9
        import pkgutil
 
10
        for (loader, name, ispkg) in pkgutil.iter_modules():
 
11
                print("Loadable module '%s'." % name)
 
12
except ImportError:
 
13
        print("Cannot determine list of loadable modules (pkgutil not found)!")
 
14
 
 
15