avoiding long paths to interpreter
tecargile at hotmail.com
Thu Jan 16 15:51:06 CET 2003
Mike Meyer <mwm at mired.org> wrote in message news:<x7lm1vupld.fsf at guru.mired.org>...
> 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.
The '#!/usr/bin/env python' is an approach alright, but I don't
see it as 'The recommended' approach. It also has caveats associated.
See FAQ 4.63. It also does not seem to answer the question asked
in the original posting.
Hope this helps,
More information about the Python-list