[issue24625] py.exe executes #! in windows
eryksun
report at bugs.python.org
Mon Jul 13 08:48:07 CEST 2015
eryksun added the comment:
To support cross-platform shebangs, the launcher special-cases the following virtual commands [1]:
/usr/bin/env python
/usr/bin/python
/usr/local/bin/python
python
The "env" virtual command searches the PATH environment variable. Note that it's /usr/bin/env since that's the most common location for the env utility on POSIX systems. If /bin/env is used there should at least be a symlink to it in /usr/bin.
[1]: https://docs.python.org/3/using/windows.html#shebang-lines
----------
nosy: +eryksun
versions: +Python 3.4 -Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24625>
_______________________________________
More information about the Python-bugs-list
mailing list