>From the welter of posts, coming back to the original,
let's summarise:

<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> how to choose between "#!/usr/bin/env python" and
> "#!/usr/local/bin/python" in the beginning of the script ?

Use env if you want maximum flexibility across
different machines. It will find where the first python
in the PATH lives and use it.

Use a hard path if you have multiple pythons installed
and it matters which one is used. But be aware that
a hard path may not work on another machine
or OS version.

And neither makes any difference on a non-Unix
based OS. (I count cygwin as being Unix based)

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to