On Fri, Sep 11, 2009 at 4:48 AM, Albert Hopkins <mar...@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 -- http://mail.python.org/mailman/listinfo/python-list