Repository URL to install this package:
|
Version:
1.0.8-2 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
setuptools
/
__pycache__
/
config.cpython-37.pyc
|
|---|
B
«ËãzÝ"
ã @ sò d dl mZmZ d dlZd dlZd dlZd dlZd dlZd dlm Z d dlm
Z
d dlmZ d dlm
Z
d dlmZmZ d dlmZmZ d d lmZmZ eZdddZd
d Zdd ZdddZG dd dZG dd deZG dd deZdS )é )Úabsolute_importÚunicode_literalsN)Údefaultdict)Úpartial)Úwraps)Ú
import_module)ÚDistutilsOptionErrorÚDistutilsFileError)Ú
LegacyVersionÚparse)Ústring_typesÚPY3Fc C s® ddl m}m} tj | ¡} tj | ¡s4td| t ¡ }t tj
| ¡¡ zJ| }|rb| ¡ ng }| |krx| | ¡ |j
||d t||j|d}W dt |¡ 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ÚdirnameÚfind_config_filesÚappendÚparse_config_filesÚparse_configurationÚcommand_optionsÚconfiguration_to_dict) ÚfilepathZfind_othersr r r Zcurrent_directoryÚdistr Úhandlers© r" ú9/tmp/pip-install-5x7thzyg/setuptools/setuptools/config.pyÚread_configuration s$
r$ c C s. dj f t }t t| |¡}t| ||}| S )z
Given a target object and option key, get that option from
the target object, either through a get_{key} method or
from an attribute directly.
z get_{key})ÚformatÚlocalsÚ functoolsr Úgetattr)Ú
target_objÚkeyZgetter_nameZby_attributeÚgetterr" r" r# Ú_get_optionD s r, c C sD t t}x6| D ].}x(|jD ]}t|j|}|||j |<