2007-06-24 | paulb | raw files shortlog changelog graph | Added the lib directory to the start of the module search path. | |
test.py (file) |
1.1 --- a/test.py Sun Jun 24 20:06:07 2007 +0200 1.2 +++ b/test.py Sun Jun 24 20:06:24 2007 +0200 1.3 @@ -18,7 +18,7 @@ 1.4 import simplify.viewer 1.5 from simplify import Importer 1.6 1.7 - importer = Importer(sys.path, "-na" not in sys.argv) 1.8 + importer = Importer(["lib"] + sys.path, "-na" not in sys.argv) 1.9 builtins = importer.load_from_file(os.path.join("lib", "builtins.py")) 1.10 module = importer.load_from_file(sys.argv[1], builtins) 1.11 if "-i" in sys.argv: