2010/1/26 Ian Bicking <i...@colorstudy.com>:
> On Tue, Jan 26, 2010 at 1:40 PM, Paul Moore <p.f.mo...@gmail.com> wrote:
>> You're right, it works:
>>
>> >type __main__.py
>> print "Hello from a zip file"
>>
>> >zip mz.py __main__.py
>>  adding: __main__.py (172 bytes security) (stored 0%)
>>
>> >mz.py
>> Hello from a zip file
>
> Sadly you can't then do:
>   chmod +x mz.py
>   ./mz.py
> because it doesn't have "#!/usr/bin/env python" like typical executable
> Python scripts have.

I'm on Windows and I don't need to. (There's got to be some place
where Windows users get to win over Linux users :-))

Paul.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to