[Python-checkins] python/dist/src/Mac/Lib argvemulator.py,1.2,1.3
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Fri, 02 Aug 2002 07:54:49 -0700
Update of /cvsroot/python/python/dist/src/Mac/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv26055
Modified Files:
argvemulator.py
Log Message:
Oops, the -psn stuff is in argv[1], of course.
Index: argvemulator.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/argvemulator.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** argvemulator.py 2 Aug 2002 12:56:21 -0000 1.2
--- argvemulator.py 2 Aug 2002 14:54:46 -0000 1.3
***************
*** 19,24 ****
self.ae_handlers = {}
# Remove the funny -psn_xxx_xxx argument
! if sys.argv[0][:4] == '-psn':
! del sys.argv[0]
self.installaehandler('aevt', 'oapp', self.open_app)
self.installaehandler('aevt', 'odoc', self.open_file)
--- 19,24 ----
self.ae_handlers = {}
# Remove the funny -psn_xxx_xxx argument
! if len(sys.argv) > 1 and sys.argv[1][:4] == '-psn':
! del sys.argv[1]
self.installaehandler('aevt', 'oapp', self.open_app)
self.installaehandler('aevt', 'odoc', self.open_file)