pkgutil
Table of Contents
itermodules
pkgutil.iter_modules(path=None, prefix='')
- Iters only the direct descendent submodules:
- Pass a list of path string to
path
, as like path
a
├ __init__.py
└ b
├ __init__.py
└ c └ __init__.py
pkgutil.iter_modules(path=None, prefix='')
path
, as like patha
├ __init__.py
└ b
├ __init__.py
└ c └ __init__.py