| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/argcomplete/__pycache__/ |
Upload File : |
�
�4�`!
� � � d Z ddlZddlZddlZ ddlmZ n(# e$ r ddlmZ ddl m
Z
edg d�� � Zd� ZY nw xY w G d � d
e� � Z
dd�Zd
� Zedk r0 e� � dS # e
$ rZ ej e� � Y dZ[dS dZ[ww xY wdS )a
Utility for locating a module (or package's __main__.py) with a given name
and verifying it contains the PYTHON_ARGCOMPLETE_OK marker.
The module name should be specified in a form usable with `python -m`.
Intended to be invoked by argcomplete's global completion function.
� N)� find_spec)�
namedtuple)�find_module�
ModuleSpec)�origin�has_location�submodule_search_locationsc �� � t | � � \ }}}n# t $ r Y dS w xY w|du}|�t d||g� � S |� � � t ||d� � S )z-Minimal implementation as required by `find`.N)r �ImportErrorr �close)�name�f�path�_r s �;/usr/lib/python3/dist-packages/argcomplete/_check_module.pyr r s� � � �$�T�*�*�J�A�t�Q�Q��� � � ��4�4� �����4�'���9��d�L�4�&�9�9�9� ��� � � ��$��d�3�3�3s � �
$�$c � � e Zd ZdS )�ArgcompleteMarkerNotFoundN)�__name__�
__module__�__qualname__� � r r r # s � � � � � ��Dr r Fc � � | � d� � }t |d � � }|�(t d� |d � � � � �|j st d� � �|j �Bt
|� � dk r(t d� |d � � � � �|j S t
|j � � dk rt d� � �t j j
|j d g|dd � �R � }t j � |� � r&d}|rd }t j �
||� � S |d
z S )N�.r zno module named "{}"zcannot locate file� z{} is not a packagezexpecting one search locationz__main__.pyz__init__.pyz.py)�splitr r �formatr r �lenr �osr �join�isdir)r
�return_package�names�specr �filenames r �findr&