mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Oops, the -psn stuff is in argv[1], of course.
This commit is contained in:
parent
21ed16acbe
commit
a9454e21a7
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue