관리-도구
편집 파일: discovery.cpython-37.pyc
B ���a� � @ s@ d dl mZmZ ddlmZ G dd� de�Zdd� Zdd � Zd S )� )�absolute_import�unicode_literals� )�PluginLoaderc @ s e Zd ZdZdS )� Discovery� N)�__name__� __module__�__qualname__�__doc__� r r �P/opt/alt/python37/lib/python3.7/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�iterZparse_known_argsr Zadd_parser_arguments) �parser�args�discover_typesZdiscovery_parserr �options�_Zdiscover_class�discoverr r r �get_discover s$ r'