diff options
author | Steve Dower <steve.dower@python.org> | 2022-10-31 21:05:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-31 21:05:50 (GMT) |
commit | 88297e2a8a75898228360ee369628a4a6111e2ee (patch) | |
tree | 36637d07a4c212de5746681b9d22db88706ca5dd /Doc/using | |
parent | 4702552885811d0af8f0e4545f494336801ad4dd (diff) | |
download | cpython-88297e2a8a75898228360ee369628a4a6111e2ee.zip cpython-88297e2a8a75898228360ee369628a4a6111e2ee.tar.gz cpython-88297e2a8a75898228360ee369628a4a6111e2ee.tar.bz2 |
gh-98692: Enable treating shebang lines as executables in py.exe launcher (GH-98732)
Diffstat (limited to 'Doc/using')
-rw-r--r-- | Doc/using/windows.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/using/windows.rst b/Doc/using/windows.rst index b5c2c8c..fdbe4c1 100644 --- a/Doc/using/windows.rst +++ b/Doc/using/windows.rst @@ -866,7 +866,6 @@ minor version. I.e. ``/usr/bin/python3.7-32`` will request usage of the not provably i386/32-bit". To request a specific environment, use the new ``-V:<TAG>`` argument with the complete tag. - The ``/usr/bin/env`` form of shebang line has one further special property. Before looking for installed Python interpreters, this form will search the executable :envvar:`PATH` for a Python executable. This corresponds to the @@ -876,6 +875,13 @@ be found, it will be handled as described below. Additionally, the environment variable :envvar:`PYLAUNCHER_NO_SEARCH_PATH` may be set (to any value) to skip this additional search. +Shebang lines that do not match any of these patterns are treated as **Windows** +paths that are absolute or relative to the directory containing the script file. +This is a convenience for Windows-only scripts, such as those generated by an +installer, since the behavior is not compatible with Unix-style shells. +These paths may be quoted, and may include multiple arguments, after which the +path to the script and any additional arguments will be appended. + Arguments in shebang lines -------------------------- |