Skip to content
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

py.exe launcher missing support for a shebang with a fully-qualified executable #98692

Closed
Khold6458 opened this issue Oct 26, 2022 · 0 comments
Closed
Assignees
Labels
3.11 only security fixes 3.12 bugs and security fixes OS-windows type-bug An unexpected behavior, bug, or error

Comments

@Khold6458
Copy link

Khold6458 commented Oct 26, 2022

Bug report

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.

Your environment

  • CPython versions tested on: 3.11.0
  • Operating system and architecture: Windows 10
@Khold6458 Khold6458 added the type-bug An unexpected behavior, bug, or error label Oct 26, 2022
@eryksun eryksun added OS-windows 3.11 only security fixes 3.12 bugs and security fixes labels Oct 26, 2022
zooba added a commit to zooba/cpython that referenced this issue Oct 26, 2022
zooba added a commit to zooba/cpython that referenced this issue Oct 27, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 31, 2022
…e launcher (pythonGH-98732)

(cherry picked from commit 88297e2)

Co-authored-by: Steve Dower <steve.dower@python.org>
@zooba zooba closed this as completed Oct 31, 2022
miss-islington added a commit that referenced this issue Oct 31, 2022
…cher (GH-98732)

(cherry picked from commit 88297e2)

Co-authored-by: Steve Dower <steve.dower@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes 3.12 bugs and security fixes OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants