�
`��g� � �4 � d dl mZ d dlmZ ddlmZ d� ZdgZy)� )�annotations)�suppress� )�convertc �� � d| j � � �}|j |� r4|| }t t � 5 d|� �}t |||� }||fcddd� S y# 1 sw Y yxY w)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:
�VIRTUALENV_zenv var N)�upper�getr � Exceptionr )�key�as_type�env�environ_key�value�sources �H/opt/hc_python/lib/python3.12/site-packages/virtualenv/config/env_var.py�get_env_varr sm � � �� � ��}�-�K�
�w�w�{���K� ��
�i�
���}�-�F��e�W�f�5�G��F�?� !�
� � !� �s �A�A#r N)�
__future__r �
contextlibr r r �__all__� � r �<module>r s �� "� � ��* ��r