# HG changeset patch # User Paul Boddie # Date 1278797009 -7200 # Node ID 43e2354c73a823e3c1a941d0caa228d3e6b089e2 # Parent 71182d5b740a5110425a2a5b30b2cd11d9183413 Added the lib directory to the start of the module search path. diff -r 71182d5b740a -r 43e2354c73a8 test.py --- a/test.py Sun Jun 27 21:26:13 2010 +0200 +++ b/test.py Sat Jul 10 23:23:29 2010 +0200 @@ -6,6 +6,11 @@ import sys import os +libdirs = [ + os.path.join(os.path.split(__file__)[0], "lib"), + "/usr/share/micropython/lib" + ] + def show_code(code): for i, x in enumerate(code): print i, x @@ -24,7 +29,7 @@ if __name__ == "__main__": args = sys.argv[2:] - path = sys.path[:] + path = libdirs + sys.path[:] if "--help" in sys.argv: print "Optimisations:"