]> granicus.if.org Git - python/commitdiff
Patch by Tony Lownds: add the Resources directory to sys.path.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 12 Sep 2002 21:58:47 +0000 (21:58 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 12 Sep 2002 21:58:47 +0000 (21:58 +0000)
Mac/Lib/appletrawmain.py

index 29c8a5762de5459d5d9b35805eee2bd0a2a83b84..4771f3cc14dd2dfbcc7811df51bfaf8627f3f1e6 100644 (file)
@@ -22,6 +22,12 @@ if not sys.argv or sys.argv[0][:1] == '-':
 else:
        _dir = os.path.split(sys.argv[0])[0]
 #
+# Add the Resources directory to the path. This is where files installed
+# by BuildApplet.py with the --extra option show up, and if those files are 
+# modules this sys.path modification is necessary to be able to import them.
+#
+sys.path.insert(0, _dir)
+#
 # Create sys.argv
 #
 argvemulator.ArgvCollector().mainloop()