avoiding long paths to interpreter
Tim Cargile
tecargile at hotmail.com
Thu Jan 16 09:51:06 EST 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.
>
> <mike
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,
Tim
More information about the Python-list
mailing list