Installed modules list?
Michael Hudson
mwh21 at cam.ac.uk
Thu Apr 19 19:31:12 EDT 2001
Carsten Gaebler <cg at schlund.de> writes:
> Is there a simple way of generating a list of all installed modules
> or do I have to walk through all directories in sys.path?
In general, in the presence of import hooks, you can't. In practice,
you can have a good go at it. I can send you code if you want, 'tho
it's not especially nice...
Cheers,
M.
--
Well, yes. I don't think I'd put something like "penchant for anal
play" and "able to wield a buttplug" in a CV unless it was relevant
to the gig being applied for...
-- Matt McLeod, alt.sysadmin.recovery
More information about the Python-list
mailing list