On Wed, May 16, 2012 at 6:36 PM, zayatzz <alan.kesselm...@gmail.com> wrote:
> There is one problem though...
>
> when i start script with shebang like
> #!/opt/bin/python
>
> and then try to run the script i get:
>
> /opt/bin/python^M: bad interpreter: No such file or directory

You have a Windows end-of-line \r\n instead of a Unix end-of-line \n -
how are you editing the files? If nothing else, run the script through
dos2unix or equivalent before executing.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to