[arch-general] shebang for python scripts
Mantas M.
grawity at gmail.com
Sun Apr 15 05:36:09 EDT 2012
On 2012-04-15 07:03, Martti Kühne wrote:
> #!/usr/bin/env python2 and #!python2 in my experience have exactly the same
> effect, so all I can do is ask you what differences you found and then we could
Nobody is talking about "#!python2", but about "#!/usr/bin/python2".
The former, "#!python2", is actually equivalent to "#!./python2"; i.e.
the one in the current directory.
The difference between "#!/usr/bin/python2" and "#!/usr/bin/env python2"
becomes obvious when you have multiple `python2`s in your $PATH.
--
Mantas M. <grawity at gmail.com>
More information about the arch-general
mailing list