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

ZeD vito.detullio at gmail.com
Wed Aug 9 03:49:47 EDT 2006


Stephan Kuhagen wrote:

>> #!/bin/sh
>> """exec" python "$0" "$@"""
> 
> Wow, cool... I like that!

yeah, but...

$ cat test.py
#!/bin/sh
"""exec" python "$0" "$@"""

print "Hello, world"
$ file test.py
test.py: Bourne shell script text executable

-- 
Under construction



More information about the Python-list mailing list