| Server IP : 162.241.203.86 / Your IP : 216.73.217.87 Web Server : Apache System : Linux br1002.hostgator.com.br 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : luxlic01 ( 6532) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/virtualenv/config/__pycache__/ |
Upload File : |
a
��:i� � @ sR d dl Z d dlZd dlmZ d dlmZ d dlmZ ddlmZ G dd� d�Z dS ) � N)�ConfigParser)�Path)�user_config_dir� )�convertc @ sN e Zd ZdZdddd�ZdZddd �Zd
d� Zdd
� Zdd� Z e
dd� �ZdS )� IniConfigZVIRTUALENV_CONFIG_FILEzfailed to parseZactive�missing)NTF�
virtualenvNc
C s |d u rt jn|}|�| jd �}|d u| _|d u rHttddd��d }nt|�}|| _i | _d }d | _ z| j�
� | _ W n( ty� } z|}W Y d }~nnd }~0 0 | j �r| j�� | _t
� | _z| �� | j�| j�| _W n* t�y } z|}W Y d }~n
d }~0 0 |d u�rt�d||� d S )Nr Zpypa)ZappnameZ appauthorzvirtualenv.iniz(failed to read config file %s because %r)�os�environ�get�VIRTUALENV_CONFIG_FILE_ENV_VAR�
is_env_varr r �config_file�_cache�has_config_file�exists�OSError�resolver �
config_parser�_loadZhas_section�section�has_virtualenv_section� Exception�logging�error)�self�envr � exception�exc� r �9/usr/lib/python3.9/site-packages/virtualenv/config/ini.py�__init__ s0
zIniConfig.__init__c C s@ | j jddd��}| j�|�W d � S 1 s20 Y d S )NZrtzutf-8)�encoding)r �openr Z read_file)r Zfile_handlerr r r! r . s zIniConfig._loadc C sr ||f}|| j v r| j | S z0d}| j�| j|�� �}t|||�}||f}W n tyb d }Y n0 || j |<