2008-01-28 | Paul Boddie | raw annotate files changeset graph | Added some notes about optimisations and how they can be upheld. |
1 #!/usr/bin/env python 2 3 import micropython 4 import sys 5 6 def show(importer): 7 for i, x in enumerate(importer.get_image()): 8 print i, x 9 10 i = micropython.Importer(sys.path) 11 if len(sys.argv) < 2: 12 m = i.load("micropython") 13 #m = i.load_from_file("micropython/__init__.py") 14 else: 15 m = i.load_from_file(sys.argv[1]) 16 i.vacuum() 17 ot = i.get_object_table() 18 pt = i.get_parameter_table() 19 20 # vim: tabstop=4 expandtab shiftwidth=4