avoiding long paths to interpreter

Mike Meyer mwm at mired.org
Thu Jan 9 01:35:55 CET 2003

Mathew Yeates <mathew at fugue.jpl.nasa.gov> writes:

> Is there an equivalent in python? What is the
> bast way to distibute a python script without
> knowing the users path to the python executable?

The recommended approach is to use:

#!/usr/bin/env python

which will find python no matter where it is if it's in the users path.

Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

More information about the Python-list mailing list