Error invalid syntax while statement
Garland Fulton
stackslip at gmail.com
Sat Jan 8 00:57:25 EST 2011
On Fri, Jan 7, 2011 at 8:55 PM, Chris Rebert <clp2 at rebertia.com> wrote:
> 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
>
Great I have learned a ton and these questions will not arise again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110107/b6593ba5/attachment-0001.html>
More information about the Python-list
mailing list