David,

Try this: 
http://pythonhosted.org/distribute/pkg_resources.html#workingset-objects

The WorkingSet should give you all modules available as well as version.

On Mar 2, 2013, at 3:45 PM, David Goldsmith <[email protected]> wrote:

> ...containing, as strings, all installed modules?  (I tried simply x = 
> help('modules') and it didn't crash, but when it got done, print x just 
> printed None.) If not, is there a way to do it more "elegant" than returning 
> a directory listing of site-packages and then filtering that for just the .py 
> files?  Thanks!
> 

Reply via email to