Skip to main content

find_module

Version of :func:imp.find_module supporting dots.

def find_module(
module: string,
path: list = null,
imp: callable = null
) - > module

Version of :func:imp.find_module supporting dots.

Parameters

NameTypeDescription
modulestringThe dot-separated name of the module to locate and import.
pathlist = nullOptional list of directory paths to search for the module; defaults to sys.path.
impcallable = nullThe import function to use for loading; defaults to import_module if not provided.

Returns

TypeDescription
moduleThe loaded module object corresponding to the provided module name.