wL i dZddlZddlZdZy)z[Utility functions for finding modules Utility functions for finding modules on sys.path. Nctjj|}|j}|)|jt j vr |jSy|jd}|ddvr|Sy)a Find module `module_name` on sys.path, and return the path to module `module_name`. * If `module_name` refers to a module directory, then return path to `__init__` file. * If `module_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. Parameters ---------- module_name : str Returns ------- module_path : str Path to module `module_name`, its __init__.py, or None, depending on above conditions. N.)pypyw) importlibutil find_specoriginloadersys meta_pathsplit) module_namespec module_path split_paths `/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/IPython/utils/module_paths.pyfind_modr'si, >> # #K 0D++K ;;#-- ';;  &&s+ b>] * )__doc__rr rrrrs$ &!r