A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-November/057997.html below:

[Python-Dev] Inconsistent behaviour in import/zipimport hooks

[Python-Dev] Inconsistent behaviour in import/zipimport hooks [Python-Dev] Inconsistent behaviour in import/zipimport hooksBill Janssen janssen at parc.com
Thu Nov 10 05:00:44 CET 2005
> This should work on a few platforms:
> env PYTHONPATH=FILE.zip python -m some_module_in_the_zip

Yeah, that's not bad, but I hate setting PYTHONPATH.  I was thinking
more along the line of

  python -z ZIPFILE

where python would look at the ZIPFILE to see if there's a top-level
module called "__init__", and if so, load it.  That would allow
existing PYTHONPATH settings to still be used if the user cares.

Bill
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4