2007-11-03 | Paul Boddie | raw annotate files changeset graph | Made a special Builtins class, separating the core module functionality into the Module class and providing the visitor functionality in the InspectedModule class. Added various upcoming features to the Importer. Added notes about namespace definitions. |
1 #!/usr/bin/env python 2 3 import micropython 4 import sys 5 6 i = micropython.Importer(sys.path) 7 if len(sys.argv) < 2: 8 m = i.load("micropython") 9 #m = i.load_from_file("micropython/__init__.py") 10 else: 11 m = i.load_from_file(sys.argv[1]) 12 i.vacuum() 13 ot = i.get_object_table() 14 pt = i.get_parameter_table() 15 16 # vim: tabstop=4 expandtab shiftwidth=4