Iterating package's module list

I

ischenko

Hi,

I'm trying to find all modules that contain doctests and execute them
(using DocTestSuite). The problem is how to iterate (programmatically)
through the package's modules.
[]

Iterating through the source files (via glob) does not help either:
<module 'M' from 'M\__init__.pyc'>

See, individual modules points to the base package, not to the module
itself.

How can I iterate through the modules that comprise a Python package?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,239
Messages
2,571,199
Members
47,834
Latest member
KristianEn

Latest Threads

Top