Bug report
Bug description:
The Python Installation Manager replaces the original Python Launcher now. Both pyzw and pyz files are then launched by the new Python Installation Manager.
The Python Installation Manager also supports the console-less pyzw version and recognizes shebang lines.
However, once a shebang line is specified, even if the file extension is pyzw, a console window still appears.
The previous Python Launcher did not have this issue.
Reproduction Steps
-
Create the following file structure:
# myapp/__main__.py
import tkinter
tkinter.Tk().mainloop()
-
Execute the following command in the terminal:
python -m zipapp myapp -p "/usr/bin/env python3" -o myapp.pyzw
-
Double-click the myapp.pyzw file to run it.
Enviroments
- OS: Windows 11 25H2
- Python: 3.14t (from the full installer)
CPython versions tested on:
3.14
Operating systems tested on:
Windows
Bug report
Bug description:
The Python Installation Manager replaces the original Python Launcher now. Both
pyzwandpyzfiles are then launched by the new Python Installation Manager.The Python Installation Manager also supports the console-less
pyzwversion and recognizes shebang lines.However, once a shebang line is specified, even if the file extension is
pyzw, a console window still appears.The previous Python Launcher did not have this issue.
Reproduction Steps
Create the following file structure:
Execute the following command in the terminal:
Double-click the
myapp.pyzwfile to run it.Enviroments
CPython versions tested on:
3.14
Operating systems tested on:
Windows