Launching a Script on the Linux Platform
Barry Scott
barry at barrys-emacs.org
Sun Nov 17 13:27:45 EST 2019
> On 12 Nov 2019, at 20:24, Wildman via Python-list <python-list at python.org> wrote:
>
> Yes, I prefer to envoke env in the shebang line instead of
> depending on the path. Paths can change especially in a
> multi-user system but env will always know where to find
> the executable.
The path to python will not change surely?
Because you are installing from a deb you know the exact path to the python you
need to use. There is no need to use the /usr/bin/env to search the path and
potential break your code, because a version of python that you do not expect is on
the path.
Barry
More information about the Python-list
mailing list