What's the difference?
David Porter
jcm at bigskytel.com
Tue Nov 14 20:26:10 EST 2000
* Simon Foster <simon at uggs.demon.co.uk>:
> Whats the difference between :
>
> #! /usr/bin/env python
>
> and :
>
> #! /usr/bin/python
the first is using the env program to divine the location of python using
the users environment. The second is a direct path to python. The first is
the safest bet if you do not know where python will be. For example, many
people put python in /usr/local/bin. The first would still work, but the
second would need to be changed.
David
More information about the Python-list
mailing list