Error invalid syntax while statement

Chris Rebert clp2 at rebertia.com
Sat Jan 8 00:55:05 EST 2011


On Fri, Jan 7, 2011 at 9:46 PM, Garland Fulton <stackslip at gmail.com> wrote:
<snip>
>   1 #!/bin/bash/python
<snip>
> What is
> wrong with my shebang line?

Its path is invalid (unless you're using a *very* weird system).
/bin/bash is the bash shell executable; bash is completely unrelated
to Python. Further, /bin/bash is a file, not a directory.

The shebang for Python is normally one of the following:
#!/usr/bin/env python
#!/usr/bin/python

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list