| Server IP : 217.160.0.135 / Your IP : 216.73.217.25 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/utils/__pycache__/ |
Upload File : |
�
�@�c# � �( � d Z ddlZddlZddlZd� ZdS )z[Utility functions for finding modules
Utility functions for finding modules on sys.path.
� Nc �� � t j � | � � }|j }|�|j t
j v r|j S dS |� d� � }|d dv r|S 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_path�
split_paths �</usr/lib/python3/dist-packages/IPython/utils/module_paths.py�find_modr ( so � �( �>�#�#�K�0�0�D��+�K����;�#�-�'�'��;���t� �&�&�s�+�+�
��b�>�]�*�*����4� )�__doc__r �osr
r � r r �<module>r sH ��� �$ � � � � � � � �
�
�
�
�&� � � � r