Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/utils/__pycache__/module_paths.cpython-39.pyc
Ðазад
a o�h � @ s d Z ddlZddlZdd� ZdS )z[Utility functions for finding modules Utility functions for finding modules on sys.path. � Nc C sR t j�| �}|j}|du r0|jtjv r,|jS dS |�d�}|d dv rJ|S dS dS )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�.���)�py�pyw)� importlib�util� find_spec�origin�loader�sys� meta_path�split)�module_name�spec�module_pathZ split_path� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/utils/module_paths.py�find_mod'