On 22/04/2q014 13:26, Chris Angelico wrote:
> On Tue, Apr 22, 2014 at 10:21 PM, Antoon Pardon
> <antoon.par...@rece.vub.ac.be> wrote:
>> Yes that was it. I changed the first line of my script to:
>>
>> #!/opt/local/bin/python2.7
>>
>> and it now works.
> 
> Excellent! Shebangs are *extremely* specific, so you may want to
> consider using "/usr/bin/env python" to get a bit more flexibility.
> (Or "python2" or "python2.7" in place of "python", depending on how
> specific you want to be.)
> 
> ChrisA
> 

`man execve`

"The interpreter must be a valid pathname for an executable which is not
itself a script."

This is (presumably) to avoid recursive walks of the filesystem trying
to locate a valid interpreter to splat over the virtual address space of
the currently executing process.

~Andrew
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to