Guido van Rossum wrote:
> I could use a refresher on how PJE's patch solves Andy's problem.

I'm not sure if you're asking about how you would execute a zip file 
after the patch has been applied, or about the mechanics of how the 
patch works. PJE's last post covered the former question, so I'll cover 
the gist of the latter.

The patch works by passing the script argument to the import machinery 
to see if it is recognised as a valid sys.path entry (i.e. either a 
directory or a zip file in a default Python installation). If it is, 
then add that location to the front of sys.path and use the -m switch 
support to execute the "__main__" module directly.

If the filename passed in isn't recognised as a sys.path entry, then it 
is executed as a script as normal.

Cheers,
Nick.

-- 
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
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