This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDE has dirty sys.argv
Type: Stage:
Components: macOS Versions:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: jvr Nosy List: jackjansen, jvr
Priority: normal Keywords:

Created on 2003-07-03 21:08 by jackjansen, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Messages (2)
msg16848 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-07-03 21:08
The IDE has a dirty sys.argv, basically what the Finder gave 
it:
>>> import sys
>>> sys.argv
['/Applications/MacPython-2.3/PythonIDE.app/Contents/
Resources/PythonIDE.py', '-psn_0_4456449']
>>> 

This is unexpected to Python users and will make things that 
expect commandline argument (such as "import 
test.autotest") fail.

The -psn option definitely has to go. Whether we keep 
sys.argv[0] I'm not sure.

Assign back to me if you don't have time.
msg16849 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2004-07-16 09:20
Logged In: YES 
user_id=45365

This appears to have been fixed at some point.
History
Date User Action Args
2022-04-10 16:09:41adminsetgithub: 38784
2003-07-03 21:08:03jackjansencreate