How can I use my modules here?

Chris Rebert clp2 at rebertia.com
Fri Sep 11 16:57:19 EDT 2009


On Fri, Sep 11, 2009 at 4:48 AM, Albert Hopkins <marduk at letterboxes.org> wrote:
> On Fri, 2009-09-11 at 02:29 -0700, Chris Rebert wrote:
>> For some reason, your Python program is being executed by bash as if
>> it were a shell script, which it's not.
>> No idea what the cause is though.
>
> Because the first 2 bytes of the file need to be #!/path/to/interpreter,
> the OP has:
>
>    ############ main.py Begin ##############
>
> This won't work.

Ah, I had thought those weren't actual lines in the file.
That certainly explains the OP's problem.

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



More information about the Python-list mailing list