[Python-Dev] Python install layout and the PATH on win32 (Rationale part 1: Regularizing the layout)

Glenn Linderman v+python at g.nevcal.com
Mon Mar 26 23:26:34 CEST 2012


On 3/26/2012 1:21 PM, Glenn Linderman wrote:
> Hmm. And here's something else that might be missing: integration of 
> the launcher with .py files that are actually ZIP archives... where 
> does it find the #! line? (probably it can't, currently -- I couldn't 
> figure out how to make it do it).  Is it possible to add a #! line at 
> the beginning of a ZIP archive for the launcher to use, and still have 
> Python recognize the result as a ZIP archive? I know self-extracting 
> archives put an executable program in front of a ZIP file, and the 
> result is still recognized by most ZIP archivers, but I tried just 
> putting a #! line followed by a ZIP archive, and Python gave me 
> SyntaxError: unknown decode error.

OK, my first try there, I forgot the stupid Windows /b switch on copy, 
so apparently the ZIP archive got mangled.

When I use ropy /b to join

#!/usr/bin/python3.2

and a zip file, it now works.  Sorry for the noise.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120326/f1dbb2fd/attachment.html>


More information about the Python-Dev mailing list