modulefinder.ModuleFinder

class modulefinder.ModuleFinder(path=None, debug=0, excludes=[], replace_paths=[])[source]

Methods

__init__([path, debug, excludes, replace_paths])
_add_badmodule(name, caller)
_safe_import_hook(name, caller, fromlist[, ...])
add_module(fqname)
any_missing() Return a list of modules that appear to be missing.
any_missing_maybe() Return two lists, one with modules that are certainly missing and one with modules that may be missing.
determine_parent(caller[, level])
ensure_fromlist(m, fromlist[, recursive])
find_all_submodules(m)
find_head_package(parent, name)
find_module(name, path[, parent])
import_hook(name[, caller, fromlist, level])
import_module(partname, fqname, parent)
load_file(pathname)
load_module(fqname, fp, pathname, file_info)
load_package(fqname, pathname)
load_tail(q, tail)
msg(level, str, *args)
msgin(*args)
msgout(*args)
replace_paths_in_code(co)
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(pathname)
scan_code(co, m)
scan_opcodes(co[, unpack])
scan_opcodes_25(co)