summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-09-12 21:58:47 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-09-12 21:58:47 (GMT)
commite87ed57ea68b1e2b7a3b4b58be9cfdb36ed9ba03 (patch)
tree31b29a459de0be7517dc36d13b6d72d720f500c3 /Mac/Lib
parent9c89da277d60694c0bce2a74aa4983f8848da483 (diff)
downloadcpython-e87ed57ea68b1e2b7a3b4b58be9cfdb36ed9ba03.zip
cpython-e87ed57ea68b1e2b7a3b4b58be9cfdb36ed9ba03.tar.gz
cpython-e87ed57ea68b1e2b7a3b4b58be9cfdb36ed9ba03.tar.bz2
Patch by Tony Lownds: add the Resources directory to sys.path.
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/appletrawmain.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mac/Lib/appletrawmain.py b/Mac/Lib/appletrawmain.py
index 29c8a57..4771f3c 100644
--- a/Mac/Lib/appletrawmain.py
+++ b/Mac/Lib/appletrawmain.py
@@ -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()