[Python-Dev] pkgutil, pkg_resource and Python 3.0 name space packages (original) (raw)

Barry Warsaw barry at python.org
Mon Jan 7 22:03:27 CET 2008


-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

On Jan 7, 2008, at 11:30 AM, M.-A. Lemburg wrote:

Open question: should we add yet another environment variable to control this? It's pretty typical for apps to expose such a thing so that the base directory (e.g. ~/.python) can be moved. I'd suggest to make the "~/.python" part configurable by an env var, e.g. PYTHONRESOURCES.

Since we can't use PYTHONOHOME, this works for me.

Perhaps we could use that directory for other Python-related resources as well, e.g. an optional sys.path lookup cache (pickled dictionary of known package/module file locations to reduces Python startup time).

Sure, why not?

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin)

iQCVAwUBR4KTn3EjvBPtnXfVAQLQlAP/R887WX0k3VNPoiyVs3qerYBj0XQyP4DT leyFWInEamtgk1+5hL+Vu180k+EFcjEQ8d2yet3sMMVUZ4piFHEd6SdNJantVKrl YBVTHkhEBNX2qMFxYmyTwzvjaMttbIn5w9TuEG4PnNiYQv4E4HlZ9HOkRY9YuNDh UMr4e4DCZtw= =PI+B -----END PGP SIGNATURE-----



More information about the Python-Dev mailing list