[Python-Dev] Inconsistent behaviour in import/zipimport hooks
Thomas Heller
theller at python.net
Wed Nov 9 22:48:07 CET 2005
Bob Ippolito <bob at redivi.com> writes:
> On Nov 9, 2005, at 1:22 PM, Bill Janssen wrote:
>
>> It's a shame that
>>
>> 1) there's no equivalent of "java -jar", i.e., "python -z
>> FILE.ZIP", and
>
> This should work on a few platforms:
> env PYTHONPATH=FILE.zip python -m some_module_in_the_zip
It should, yes - but it doesn't: -m doesn't work with zipimport.
Thomas
More information about the Python-Dev
mailing list