관리-도구
편집 파일: discovery.cpython-38.pyc
U *�e� � @ sD d dl mZ ddlmZ G dd� de�Zdd� Zdd � ZddgZd S )� )�annotations� )�PluginLoaderc @ s e Zd ZdZdS )� DiscoveryzDiscovery plugins.N)�__name__� __module__�__qualname__�__doc__� r r �M/opt/hc_python/lib/python3.8/site-packages/virtualenv/run/plugin/discovery.pyr s r c C s� t �d�}| jddd�}t|�}t|dd� d�}|jd|tt|��d d d� | �|�\}}||j }|� |� | j||d�\}}||�S ) Nzvirtualenv.discovery� discoveryz)discover and provide a target interpreter)�title�descriptionc S s | dkrdS dS )N�builtinr r r )�ar r r �<lambda> � zget_discover.<locals>.<lambda>)�keyz--discoveryFzinterpreter discovery method)�choices�default�required�help)� namespace)r Zentry_points_for�add_argument_group�_get_default_discovery�sorted�add_argument�next�iter�parse_known_argsr Zadd_parser_arguments)�parser�args�discover_typesZdiscovery_parserr �options�_Zdiscover_classr r r �get_discover s&