summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2022-08-03 21:18:51 (GMT)
committerGitHub <noreply@github.com>2022-08-03 21:18:51 (GMT)
commit67840edb2851c6d4ca65d8389327d8a6dc06255a (patch)
tree121d5d5aafe0fa9ac48291f06e2572af7e1bc1e1 /Doc
parentb53aed76d26419fc7449c358c6035c9afe055e16 (diff)
downloadcpython-67840edb2851c6d4ca65d8389327d8a6dc06255a.zip
cpython-67840edb2851c6d4ca65d8389327d8a6dc06255a.tar.gz
cpython-67840edb2851c6d4ca65d8389327d8a6dc06255a.tar.bz2
gh-94399: Restore PATH search behaviour of py.exe launcher for '/usr/bin/env' shebang lines (GH-95582)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/using/windows.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/using/windows.rst b/Doc/using/windows.rst
index 2db73c8..a289435 100644
--- a/Doc/using/windows.rst
+++ b/Doc/using/windows.rst
@@ -868,6 +868,11 @@ 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
behaviour of the Unix ``env`` program, which performs a :envvar:`PATH` search.
+If an executable matching the first argument after the ``env`` command cannot
+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.
+
Arguments in shebang lines
--------------------------