[Tutor] "#!/usr/bin/env python" vs "#!/usr/local/bin/python"

Ezra Taylor ezra.taylor at gmail.com
Thu Jun 14 15:58:33 CEST 2007


I think Emilia means what's the difference.  From what little I know,
#!/usr/bin/env python will choose the first python that's in your path.
Were as the second option, you explicitly choose which instance of python
you want.  I'm using using python from Activestate.  So my shebang is to the
Activestate directory for python.  If I'm wrong, please correct.

Ezra

On 6/14/07, emilia12 at mail.bg <emilia12 at mail.bg> wrote:
>
> hi list,
>
> how to choose between "#!/usr/bin/env python" and
> "#!/usr/local/bin/python" in the beginning of the script ?
> e.
>
>
>
> -----------------------------
>
> SCENA - Ĺäčíńňâĺíîňî ÁĹÇĎËŔŇÍÎ ńďčńŕíčĺ çŕ ěîáčëíč ęîěóíčęŕöčč č
> ňĺőíîëîăčč.
> http://www.bgscena.com/
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>



-- 
Ezra Taylor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070614/27b4b957/attachment.html 


More information about the Tutor mailing list