Skip to content

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

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:argv_not_abs
Dec 9, 2019
Merged

bpo-20443: No longer make sys.argv[0] absolute for script#17534
vstinner merged 1 commit intopython:masterfrom
vstinner:argv_not_abs

Conversation

@vstinner
Copy link
Copy Markdown
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