[Tutor] python scripting using "./"

Walter Prins wprins at gmail.com
Tue May 24 16:02:04 CEST 2011


On 24 May 2011 14:51, Hank Wilkinson <hwilkinson at triad.rr.com> wrote:

> Thank you, I changed the first line to:
> #!/usr/bin/env/python3
> then I tried again:
> John-Wilkinsons-iMac:p31summerfield wilkinson$ ./hello.py
> -bash: ./hello.py: /usr/bin/env/python3^M: bad interpreter: Not a directory
> John-Wilkinsons-iMac:p31summerfield wilkinson$
>
> So I am getting different messages, but ...
>
> Yes, the exact line to use is:

#!/usr/bin/env python

Note the space between "/usr/bin/env" and  "python".

If you'd like to know what's happening here I'll explain.

Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110524/8f081159/attachment-0001.html>


More information about the Tutor mailing list