[Python-checkins] python/dist/src/Mac/Lib appletrawmain.py,1.2,1.3
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Thu, 12 Sep 2002 14:58:49 -0700
Update of /cvsroot/python/python/dist/src/Mac/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv18493
Modified Files:
appletrawmain.py
Log Message:
Patch by Tony Lownds: add the Resources directory to sys.path.
Index: appletrawmain.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/appletrawmain.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** appletrawmain.py 2 Aug 2002 15:31:25 -0000 1.2
--- appletrawmain.py 12 Sep 2002 21:58:47 -0000 1.3
***************
*** 23,26 ****
--- 23,32 ----
_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
#