관리-도구
편집 파일: env_var.cpython-38.pyc
U *�e� � @ s6 d dl mZ d dlmZ ddlmZ dd� ZdgZdS )� )�annotations)�suppress� )�convertc C s^ d| � � � �}|�|�rZ|| }tt��, d|� �}t|||�}||fW 5 Q R � S Q R X dS )z� Get the environment variable option. :param key: the config key requested :param as_type: the type we would like to convert it to :param env: environment variables to use :return: ZVIRTUALENV_zenv var N)�upper�getr � Exceptionr )�keyZas_type�envZenviron_key�value�source� r �G/opt/hc_python/lib/python3.8/site-packages/virtualenv/config/env_var.py�get_env_var s r N)� __future__r � contextlibr r r �__all__r r r r �<module> s �