Module: utils.module_paths
Utility functions for finding modules
Utility functions for finding modules on sys.path.
1 Function
- IPython.utils.module_paths.find_mod(module_name: str) str | None | Loader
Find module
module_nameon sys.path, and return the path to modulemodule_name.- If
module_namerefers to a module directory, then return path to__init__file. If
module_nameis a directory without an __init__file, return None.
- If
- If module is missing or does not have a
.pyor.pywextension, return None. Note that we are not interested in running bytecode.
- If module is missing or does not have a
Otherwise, return the fill path of the module.