What's the difference?

David Porter jcm at bigskytel.com
Wed Nov 15 02:26:10 CET 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