newbie q: /usr/bin/env why?

James Logajan JamesL at Lugoj.Com
Sat Aug 26 19:02:09 EDT 2000


Erik Max Francis wrote:
> Using /usr/bin/env prevents you from hardcoding the Python interpreter's
> path, which may be different on different systems (e.g.,
> /usr/bin/python, /opt/python, /usr/local/bin/python, etc.).
> /usr/bin/env does all that work for you, as ensured to be in a standard
> place.

But "env" turns out to not be in a standard place, either. Mostly, but there
are exceptions.



More information about the Python-list mailing list