hidden built-in module

koara koara at atlas.cz
Fri Mar 7 16:15:56 CET 2008


> You can only try and search the sys-path for the logging-module, using
>
> sys.prefix
>
> and then look for logging.py. Using
>
> __import__(path)
>
> you get a reference to that module.
>
> Diez


Thank you Diez, that's the info i'd been looking for :-)

So the answer is sys module + __import__

Cheers!



More information about the Python-list mailing list