Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sys.orig_argv is not original, at least on some systems #125006

Copy link
Copy link
Open
@pkit

Description

@pkit
Issue body actions

In an OSX .venv the "original" sys.orig_argv is not really original...

(.venv) % cat orig.py
import sys

print(sys.orig_argv)

(.venv) % python orig.py 
['/opt/homebrew/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python', 'orig.py']

(.venv) % which python
/Users/user/git/project/.venv/bin/python

I can use os.environ["_"] but it's a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-mactype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.