#!/usr/bin/python or #!/usr/bin/env python?

"Martin v. Löwis" martin at v.loewis.de
Tue Aug 8 15:27:33 EDT 2006


John Salerno schrieb:
> I understand the difference, but I'm just curious if anyone has any
> strong feelings toward using one over the other? 

I use /usr/bin/env if I don't know what the operating system is;
some systems don't have Python in /usr/bin. I use /usr/bin/pythonX.Y
if I want a specific version on a specific operating system (typically
Linux). I use /usr/bin/python when I'm too lazy to think about it
thoroughly.

Regards,
Martin



More information about the Python-list mailing list