You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
py.exe launcher missing support for a shebang with a fully-qualified executable #98692
In previous versions, a shebang line like #! C:\full\path\to\executable or #! C:\venv\Scripts\python worked to specify the executable used to run the script. With the 3.11 py.exe launcher, this pattern is not recognized and uses a default Python interpreter instead.
I initially reported this in the comments of issue #94399 which was resolved several months ago.
Activity
pythongh-98692: Enable treating shebang lines as executables in py.ex…
Merge remote-tracking branch 'cpython/main' into pythongh-98692
gh-98692: Enable treating shebang lines as executables in py.exe laun…
pythongh-98692: Enable treating shebang lines as executables in py.ex…
gh-98692: Enable treating shebang lines as executables in py.exe laun…