Server IP : 23.254.227.96 / Your IP : 216.73.216.46 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/setuptools/__pycache__/ |
Upload File : |
3 U('dVF � @ s� d dl mZmZ d dlZd dlZd dlZd dlmZ d dlm Z d dl mZ d dlm Z mZ d dlmZmZ d dlmZ dd d�Zdd � Zddd�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )� )�absolute_import�unicode_literalsN)�defaultdict)�partial)� import_module)�DistutilsOptionError�DistutilsFileError)� LegacyVersion�parse)�string_typesFc C s� ddl m}m} tjj| �} tjj| �s4td| ��tj� }tj tjj | �� zJ|� }|rb|j� ng }| |krx|j| � |j ||d� t||j|d�}W dtj |� X t|�S )a, Read given configuration file and returns options from it as a dict. :param str|unicode filepath: Path to configuration file to get options from. :param bool find_others: Whether to search for other configuration files which could be on in various places. :param bool ignore_option_errors: Whether to silently ignore options, values of which could not be resolved (e.g. due to exceptions in directives such as file:, attr:, etc.). If False exceptions are propagated as expected. :rtype: dict r )�Distribution� _Distributionz%Configuration file %s does not exist.)� filenames)�ignore_option_errorsN)Zsetuptools.distr r �os�path�abspath�isfiler �getcwd�chdir�dirnameZfind_config_files�appendZparse_config_files�parse_configuration�command_options�configuration_to_dict) �filepathZfind_othersr r r Zcurrent_directoryZdistr �handlers� r �/usr/lib/python3.6/config.py�read_configuration s$ r c C sl t t�}x^| D ]V}|j}|j}xD|jD ]:}t|d| d�}|dkrNt||�}n|� }||| |<