관리-도구
편집 파일: discover.cpython-311.pyc
� �܋f � �: � d dl mZmZ G d� de�� � ZdgZdS )� )�ABCMeta�abstractmethodc �Z � e Zd ZdZed� � � Zd� Zed� � � Ze d� � � Z dS )�Discoverz5Discover and provide the requested Python interpreterc � � t �)z`Add CLI arguments for this discovery mechanisms. :param parser: the CLI parser ��NotImplementedError)�cls�parsers �n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/virtualenv/discovery/discover.py�add_parser_argumentszDiscover.add_parser_arguments � � � "�!� c �: � d| _ d| _ |j | _ dS )z�Create a new discovery mechanism. :param options: the parsed options as defined within :meth:`add_parser_arguments` FN)�_has_run�_interpreter�env�_env)�self�optionss r �__init__zDiscover.__init__ s � � �� � ����K�� � � r c � � t �)zrDiscovers an interpreter. :return: the interpreter ready to use for virtual environment creation r �r s r �runzDiscover.run r r c �b � | j du r | � � � | _ d| _ | j S )zM :return: the interpreter as returned by :meth:`run`, cached FT)r r r r s r �interpreterzDiscover.interpreter s1 � � �=�E�!�!� $��� � �D�� �D�M�� � r N)�__name__� __module__�__qualname__�__doc__�classmethodr r r r �propertyr � r r r r sx � � � � � �?�?��"� "� �[�"� � � � �"� "� �^�"� �!� !� �X�!� !� !r r )� metaclassN)�abcr r r �__all__r# r r �<module>r'