https://github.com/python/cpython/commit/b101e9d36b1aed2bb4bca8aec3e1cc1d1df4f79e
commit: b101e9d36b1aed2bb4bca8aec3e1cc1d1df4f79e
branch: main
author: Steve Dower <[email protected]>
committer: zooba <[email protected]>
date: 2025-11-14T15:23:01Z
summary:

Add PyManager troubleshooting steps for direct launch of script files 
(GH-141530)

files:
M Doc/using/windows.rst

diff --git a/Doc/using/windows.rst b/Doc/using/windows.rst
index e6619b73bd2c26..ee18251919959e 100644
--- a/Doc/using/windows.rst
+++ b/Doc/using/windows.rst
@@ -4,6 +4,8 @@
 
 .. _Microsoft Store app: https://apps.microsoft.com/detail/9NQ7512CXL7T
 
+.. _legacy launcher: 
https://www.python.org/ftp/python/3.14.0/win32/launcher.msi
+
 .. _using-on-windows:
 
 *************************
@@ -543,12 +545,9 @@ configuration option.
    The behaviour of shebangs in the Python install manager is subtly different
    from the previous ``py.exe`` launcher, and the old configuration options no
    longer apply. If you are specifically reliant on the old behaviour or
-   configuration, we recommend keeping the legacy launcher. It may be
-   `downloaded independently 
<https://www.python.org/ftp/python/3.13.1/win32/launcher.msi>`_
-   and installed on its own. The legacy launcher's ``py`` command will override
-   PyManager's one, and you will need to use ``pymanager`` commands for
-   installing and uninstalling.
-
+   configuration, we recommend installing the `legacy launcher`_. The legacy
+   launcher's ``py`` command will override PyManager's one by default, and you
+   will need to use ``pymanager`` commands for installing and uninstalling.
 
 .. _Add-AppxPackage: 
https://learn.microsoft.com/powershell/module/appx/add-appxpackage
 
@@ -859,6 +858,17 @@ default).
        These scripts are separated for each runtime, and so you may need to
        add multiple paths.
 
+   * - Typing ``script-name.py`` in the terminal opens in a new window.
+     - This is a known limitation of the operating system. Either specify 
``py``
+       before the script name, create a batch file containing ``@py 
"%~dpn0.py" %*``
+       with the same name as the script, or install the `legacy launcher`_
+       and select it as the association for scripts.
+
+   * - Drag-dropping files onto a script doesn't work
+     - This is a known limitation of the operating system. It is supported with
+       the `legacy launcher`_, or with the Python install manager when 
installed
+       from the MSI.
+
 
 .. _windows-embeddable:
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to