Doug Kearns wrote:
Is this the best/simplest way to generate a module list?
python -c 'from pydoc import help; help("modules")'
Thanks,
Doug
I am not sure if this is what you want, but how about:
For python 2.4, try:
python -c "import sys; print sorted(sys.modules)"
For earlier pythons, use:
python -c "import sys; nms = sys.modules.keys(); nms.sort(); print nms"
or:
python -c "import sys; print sys.modules.keys()"
if you don't care about order.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list