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

Gilles nospam at nospam.com
Fri Sep 28 09:22:16 EDT 2012


On Fri, 28 Sep 2012 09:19:54 -0400, D'Arcy Cain <darcy at druid.net>
wrote:
>Not just flexible but portable.  On various systems I have Python
>in /usr/bin, /usr/local/bin and /usr/pkg/bin.  "#!/usr/bin/env python"
>finds it in each case so I only need one version of the script.

Good to know.



More information about the Python-list mailing list