관리-도구
편집 파일: _imp.cpython-38.opt-1.pyc
U �Qab� � @ s\ d Z ddlZddlZddlZddlmZ dZdZdZ dZ dZdd d �Zddd�Z d d� ZdS )zX Re-implementation of find_module and get_frozen_object from the deprecated imp module. � N� )�module_from_spec� � � � c C sV t j�| |�}|dkr"td| ��|jsBt|d�rBt j�d|j�}d}d}t|jt �}|j dkst|r�t|jt jj �r�t}d}d }}n�|j dks�|r�t|jt jj�r�t}d}d }}n�|j�r:|j }tj�|�d }|t jjkr�d nd}|t jjkr�t}n&|t jjk�rt}n|t jjk�r t}|tthk�rFt||�}nd}d }}|||||ffS )z7Just like 'imp.find_module()', but with package supportN� Can't find %s�submodule_search_locationsz__init__.py����frozen� zbuilt-inr �r�rb)� importlib�util� find_spec�ImportError�has_location�hasattr�spec_from_loader�loader� isinstance�type�origin� issubclass� machinery�FrozenImporter� PY_FROZEN�BuiltinImporter� C_BUILTIN�os�path�splitext�SOURCE_SUFFIXES� PY_SOURCE�BYTECODE_SUFFIXES�PY_COMPILED�EXTENSION_SUFFIXES�C_EXTENSION�open) �module�paths�specZkind�fileZstaticr! �suffix�mode� r0 �3/usr/lib/python3.8/site-packages/setuptools/_imp.py�find_module sJ � � r2 c C s* t j�| |�}|std| ��|j�| �S �Nr )r r r r r �get_code)r* r+ r, r0 r0 r1 �get_frozen_object>