If you tend to install python in different and interesting places on your PATH (as in $PATH on typical Unix shells, %PATH on regular Windows systems), using /usr/bin/env will fit your whim (well, on Unix-like environments at least) going directly to /usr/bin/python will not. But losing control of the version of Python your scripts are running on is not a good deal ... if you look at my code, you will most likely start with it, for example, #!/usr/local/bin/python2.5 and not from open and receiving #!/usr/bin/env python - assuming the script is important, I like it to work with the specific version that I tested and develop it, rather than a semi-random one; -).
Alex Martelli Aug 30 '09 at 2:36 2009-08-30 02:36
source share