"#!/usr/bin/env python" vs. "#!/usr/bin/python"?

Сахнов Михаил sahnov.m at gmail.com
Fri Sep 28 06:39:55 EDT 2012


When you use frst one, you'll get the system-wide default interpreter.
When you use second one, you'll get concrete interpreter (or error, if path
to interpreter is invalid)

2012/9/28 Gilles <nospam at nospam.com>

> Hello
>
> I've seen both shebang lines to run a Python script on a *nix host:
>
> #!/usr/bin/env python
> #!/usr/bin/python
>
> What's the difference?
>
> Thank you.
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
С уважением, Сахнов Михаил.
--
ICQ:#7499099
JID:soider at jabber.ru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120928/b280f134/attachment.html>


More information about the Python-list mailing list