At 03:00 PM 12/17/2008 -0600, Ian Bicking wrote:
Does this work?

#!/usr/bin/env "/path/to/weird path/python"

Depends on the Unix, unfortunately. Some would need it without the quotes to work, and some probably won't work with or without it.

My point was more that it should at least try for something specific, i.e. python2.5, rather than just 'python', and perhaps verify that searching PATH for that string yields sys.executable. If not, then you already know it's not going to work right, and you might as well issue a warning right away.
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to