Mailing List Archive

[issue1739468] Add a -z interpreter flag to execute a zip file
Phillip J. Eby added the comment:

Patch implementing an alternate approach: support automatically
importing __main__ when sys.argv[0] is an importable path. This allows
zip files, directories, and any future importable locations (e.g. URLs)
to be used on the command line. Note that this also means that you
don't need an option on the #! line in a zip file, which avoids hairy #!
issues on platforms like Linux (where a #! line can have at most one
argument). __main__ is used instead of __zipmain__, since it is not
zipfile specific.

----------
nosy: +pje

_____________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue1739468>
_____________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue1739468] Add a -z interpreter flag to execute a zip file [ In reply to ]
Changes by Phillip J. Eby:


_____________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue1739468>
_____________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com