Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 30753c3

Browse files
authored
gh-100247: Improve documentation for custom shebang commands in py.exe launcher (GH-101083)
1 parent df10571 commit 30753c3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/using/windows.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -880,14 +880,15 @@ The environment variable :envvar:`PYLAUNCHER_NO_SEARCH_PATH` may be set
880880
Shebang lines that do not match any of these patterns are looked up in the
881881
``[commands]`` section of the launcher's :ref:`.INI file <launcher-ini>`.
882882
This may be used to handle certain commands in a way that makes sense for your
883-
system. The name of the command must be a single argument (no spaces),
884-
and the value substituted is the full path to the executable (no arguments
885-
may be added).
883+
system. The name of the command must be a single argument (no spaces in the
884+
shebang executable), and the value substituted is the full path to the
885+
executable (additional arguments specified in the .INI will be quoted as part
886+
of the filename).
886887

887888
.. code-block:: ini
888889
889890
[commands]
890-
/bin/sh=C:\Program Files\Bash\bash.exe
891+
/bin/xpython=C:\Program Files\XPython\python.exe
891892
892893
Any commands not found in the .INI file are treated as **Windows** executable
893894
paths that are absolute or relative to the directory containing the script file.

0 commit comments

Comments
 (0)