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?
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?