관리-도구
편집 파일: discover.cpython-38.pyc
U *�e� � @ s8 d dl mZ d dlmZmZ G dd� ded�ZdgZdS )� )�annotations)�ABCMeta�abstractmethodc @ sB e Zd ZdZedd� �Zdd�dd�Zedd � �Ze d d� �Z dS ) �Discoverz6Discover and provide the requested Python interpreter.c C s t �dS )zi Add CLI arguments for this discovery mechanisms. :param parser: the CLI parser N��NotImplementedError)�cls�parser� r �K/opt/hc_python/lib/python3.8/site-packages/virtualenv/discovery/discover.py�add_parser_arguments s zDiscover.add_parser_arguments�None)�returnc C s 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�envZ_env)�self�optionsr r r �__init__ s zDiscover.__init__c C s t �dS )z{ Discovers an interpreter. :return: the interpreter ready to use for virtual environment creation Nr �r r r r �run s zDiscover.runc C s | j dkr| �� | _d| _ | jS )z;:return: the interpreter as returned by :meth:`run`, cachedFT)r r r r r r r �interpreter% s zDiscover.interpreterN)�__name__� __module__�__qualname__�__doc__�classmethodr r r r �propertyr r r r r r s r )� metaclassN)� __future__r �abcr r r �__all__r r r r �<module> s )�