This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients Alexandros Karypidis, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-12-11.22:11:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576102303.78.0.244035096725.issue38999@roundup.psfhosted.org>
In-reply-to
Content
> This makes it simple for users to intervene via the PATH (which is the whole point of /usr/bin/env) and launch whatever they want.

That's one point of view, but the other is that the whole point of the shebang line is for users to be able to run the script without having to use a terminal at all. And once you're there, you no longer have a customisable PATH to work with.

"Simple for users to intervene via the PATH" is not true on Windows. Modifying PATH globally can break applications or (some) system components, and modifying it temporarily requires becoming a terminal user, which is not the majority.

Personally, I think supporting the shebang line in py.exe is a misfeature and would prefer we'd never done it (though it predates my involvement). But if someone wants to implement support for detecting a venv and matching it to the shebang, I won't actively block it going in.
History
Date User Action Args
2019-12-11 22:11:44steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware, eryksun, Alexandros Karypidis
2019-12-11 22:11:43steve.dowersetmessageid: <1576102303.78.0.244035096725.issue38999@roundup.psfhosted.org>
2019-12-11 22:11:43steve.dowerlinkissue38999 messages
2019-12-11 22:11:43steve.dowercreate