Important
This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7.
If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).
Module: utils.module_paths
¶
Utility functions for finding modules
Utility functions for finding modules on sys.path.
find_module
returns a path to module or None, given certain conditions.
1 Function¶
- IPython.utils.module_paths.find_mod(module_name)¶
Find module
module_name
on sys.path, and return the path to modulemodule_name
.If
module_name
refers to a module directory, then return path to __init__ file. - Ifmodule_name
is a directory without an __init__file, return None.If module is missing or does not have a
.py
or.pyw
extension, return None. - Note that we are not interested in running bytecode.Otherwise, return the fill path of the module.