PyDocs

Importing Modules

modulefinder

Find modules used by a script, using introspection.
Symbols in modulefinder

a

AddPackagePath
Record that the package named pkg_name can be found in the specified path.

m

ModuleFinder
This class provides run_script() and report() methods to determine the set of modules imported by a script.

r

ReplacePackage
Allows specifying that the module named oldname is in fact the package named newname.