PyDocs

Nav

Importing Modules

ModuleFinder

  • ModuleFinder(path=None, debug=0, excludes=[], replace_paths=[])
This class provides run_script() and report() methods to determine the set of modules imported by a script. path can be a list of directories to search for modules; if not specified, sys.path is used. debug sets the debugging level; higher values make the class print debugging messages about what it’s doing. excludes is a list of module names to exclude from the analysis. replace_paths is a list of (oldpath, newpath) tuples that will be replaced in module paths.
Members of ModuleFinder

m

modules
A dictionary mapping module names to modules.

r

report
Print a report to stdout, listing the found modules with their paths, as well as modules that are missing, or seem to be missing.
run_script
Analyze the contents of the pathname file, which must contain Python code.
0 Examples
No examples for modulefinder/ModuleFinder.
See Also
No see-alsos for modulefinder/ModuleFinder
0 Notes
No notes for ModuleFinder