[issue28686] py.exe ignored PATH when using python3 shebang
Eryk Sun
report at bugs.python.org
Wed Feb 8 18:44:33 EST 2017
Eryk Sun added the comment:
If the system doesn't have a "python3.exe" on PATH, then "env python3" will run a registered version, exactly like it currently does. IMO, this is slightly less confusing than the current behavior, which skips searching PATH in this case. We can take it a step further, however. If the launcher can't find the versioned name, then search for "python[w].exe" and determine its version using the approach I outlined above. If it doesn't match the required version, as always the launcher will default to running a registered version.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28686>
_______________________________________
More information about the Python-bugs-list
mailing list