summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-02 14:54:46 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-02 14:54:46 (GMT)
commita9454e21a70fecfe3686682ea4de716a75a3d828 (patch)
tree8f7deba348948f88e90d779de6b091875a0101f5
parent21ed16acbe0a8870f6833b7976f8b7e79452d21c (diff)
downloadcpython-a9454e21a70fecfe3686682ea4de716a75a3d828.zip
cpython-a9454e21a70fecfe3686682ea4de716a75a3d828.tar.gz
cpython-a9454e21a70fecfe3686682ea4de716a75a3d828.tar.bz2
Oops, the -psn stuff is in argv[1], of course.
-rw-r--r--Mac/Lib/argvemulator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Lib/argvemulator.py b/Mac/Lib/argvemulator.py
index 2df597a..89d48b8 100644
--- a/Mac/Lib/argvemulator.py
+++ b/Mac/Lib/argvemulator.py
@@ -18,8 +18,8 @@ class ArgvCollector:
self.quitting = 0
self.ae_handlers = {}
# Remove the funny -psn_xxx_xxx argument
- if sys.argv[0][:4] == '-psn':
- del sys.argv[0]
+ 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)