[issue46645] Portable python3 shebang for Windows, macOS, and Linux

Josh Triplett report at bugs.python.org
Fri Feb 4 22:06:30 EST 2022


Josh Triplett <josh at joshtriplett.org> added the comment:

Correction to the above evaluation of `#!/usr/bin/env python3`, based on some retesting on Windows systems:

The failure case we encounter reasonably often involves the official Python installer for Windows, but applies specifically in the case of third-party shells such as MSYS2, which fail with that shebang. `#!/usr/bin/env python3` does work with the official Python installer when running from cmd or PowerShell, it just doesn't work from third-party shells.

We have enough users that cases like this come up reasonably often, and it'd be nice to Just Work in those cases too.

Thank you.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46645>
_______________________________________


More information about the Python-bugs-list mailing list