Skip to content

Install manager breaks running scripts from Command Prompt via Windows file associations #193

@alabuzhev

Description

@alabuzhev

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:

  1. Install Python install manager
  2. Run it, let it download Python
  3. Create a simple script that prints something:

test.py

print("Hello, World")
  1. Open Windows Command Prompt (Win+R, cmd, Enter)
  2. Go to the directory with the script above, e.g. cd <your_path>
  3. Run the script directly, e.g. test.py
    Note: NOT python test.py or py 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions