Installed modules list?

Steve Purcell stephen_purcell at yahoo.com
Tue Apr 17 09:31:15 EDT 2001


Carsten Gaebler wrote:
> 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?

Option 2.

(You can get the list of builtin modules using sys.builtin_module_names, but
that's only part of the story, of course)

-Steve

-- 
Steve Purcell, Pythangelist
Get testing at http://pyunit.sourceforge.net/
Any opinions expressed herein are my own and not necessarily those of Yahoo




More information about the Python-list mailing list