Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bpo-20443: No longer make sys.argv[0] absolute for script #17534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 9, 2019
Merged

bpo-20443: No longer make sys.argv[0] absolute for script #17534

merged 1 commit into from
Dec 9, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 9, 2019

In Python 3.9.0a1, sys.argv[0] was made an asolute path if a filename
was specified on the command line. Revert this change, since most
users expect sys.argv to be unmodified.

https://bugs.python.org/issue20443

In Python 3.9.0a1, sys.argv[0] was made an asolute path if a filename
was specified on the command line. Revert this change, since most
users expect sys.argv to be unmodified.
@vstinner vstinner merged commit a1a99b4 into python:master Dec 9, 2019
@vstinner vstinner deleted the argv_not_abs branch December 9, 2019 16:34
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
…7534)

In Python 3.9.0a1, sys.argv[0] was made an asolute path if a filename
was specified on the command line. Revert this change, since most
users expect sys.argv to be unmodified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants