OwlCyberSecurity - MANAGER
Edit File: __init__.cpython-38.pyc
U b�^z � @ s� d dl mZmZ d dlZd dlZd dlmZ ddlmZ ddl m Z mZ ddlm Z ddlmZ d d lmZ d dlmZ d dlmZ d d lmZ ddd�Zdd� Zddd�Zdd� Zdd� ZdS )� )�absolute_import�unicode_literalsN)� AppDataAction� )�VirtualEnvConfigParser)�LEVELS�setup_report)�Session)�__version__� )�ActivationSelector)�CreatorSelector)�get_discover)�SeederSelectorc C s6 |dkrt �� }t| |�}|� |�� W 5 Q R X |S )aV Create a virtual environment given some command line interface arguments :param args: the command line arguments :param options: passing in a ``argparse.Namespace`` object allows return of the parsed options :return: the session object of the creation (its structure for now is experimental and might change on short notice) N)�argparseZ Namespace�session_via_cli�run)�args�options�session� r �9/usr/lib/python3/dist-packages/virtualenv/run/__init__.py�cli_run s r c sT t | |�� � j| � jd� t� fdd�� jD ��\}}}t� j|j� j|||�}|S )N�� namespacec 3 s | ]}|� � j�V qd S )N)Zcreate�_options)�.0�e��parserr r � <genexpr>% s z"session_via_cli.<locals>.<genexpr>) �build_parser� parse_argsr �tuple� _elementsr � _verbosity�app_data�_interpreter)r r ZcreatorZseederZ activatorsr r r r r "