Executing python scripts
peter at engcorp.com
Fri Oct 22 12:48:10 CEST 2004
Alex Martelli wrote:
> Shufen <s4046441 at student.uq.edu.au> wrote:
>>Can someone please advice me on the differences between this:
>>#!/usr/bin/env python and these: #!/usr/local/bin/python or
>>I know the first one locates the Python interpreter according to my
>>system searching path setting. But I read about an article that
> Right. The other two hardwire the location. The first will not work on
> an installation which only has Python in /usr/bin, and viceversa.
To clarify (since I misunderstood this when I first read it): Alex
means "the first of the these", referring to the two that don't
look in the search path, when he writes "the first" (and not the
previously referenced "first one" as it seems, at first :-).
More information about the Python-list