- 
                Notifications
    You must be signed in to change notification settings 
- Fork 17
Description
Install source and version
- Installed from the Windows Store
- Installed with the MSIX from python.org
- Installed with the MSI from python.org
-  Installed with winget install 9NQ7512CXL7T
Version: 
25.0
Describe the bug
When Python install manager is installed, Windows file associations for python scripts do not work as expected when scripts are invoked from Command Prompt (cmd.exe): the interpreter starts in a new console window instead of the same one.
To Reproduce
Steps to reproduce the behavior:
- Install Python install manager
- Run it, let it download Python
- Create a simple script that prints something:
test.py
print("Hello, World")- Open Windows Command Prompt (Win+R, cmd, Enter)
- Go to the directory with the script above, e.g. cd <your_path>
- Run the script directly, e.g. test.py
 Note: NOTpython test.pyorpy test.py
Expected behavior
The interpreter runs in the same console.
The text is printed into the same console.
The text is visible to the user after the interpreter exits.
Actual behavior
A completely new console window opens, with something like C:\Program Files\WindowsApps\PythonSoftwareFoundation.PythonManager_25.0.240.0_x64__3847v3x7pw1km\python.exe in the title.
The text is printed into that new console.
The text is not visible to the user after the interpreter exits.
Additional context
It used to work as expected with Python Launcher.