"#!/usr/bin/env python" vs. "#!/usr/bin/python"?
Gilles
nospam at nospam.com
Fri Sep 28 07:34:48 EDT 2012
On Fri, 28 Sep 2012 06:57:28 -0400, Roy Smith <roy at panix.com> wrote:
>The first one looks through your PATH to find the right python
>interpreter to run. The second one is hard-wired to run /usr/bin/python.
>
>If you only have a single copy of python installed, it doesn't really
>matter which you use. But, you might as well get into the habit of
>using the /usr/bin/env flavor because it's more flexible.
Thanks guys. I suspected that's what the difference was.
More information about the Python-list
mailing list