Repository URL to install this package:
|
Version:
1.0.10 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
setuptools
/
__pycache__
/
config.cpython-37.pyc
|
|---|
B
»Oa9Ì9,Çã @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z d dlm
Z
d dlmZ d dl
Z
d dlmZmZ d dlmZmZ d dlmZ G d d
d
Ze
jdd ZdddZdd Zdd ZdddZG dd dZG dd deZG dd deZdS )é N)Údefaultdict)Úpartial)Úwraps)Úiglob)ÚDistutilsOptionErrorÚDistutilsFileError)ÚVersionÚInvalidVersion)ÚSpecifierSetc @ s e Zd ZdZdd Zdd ZdS )ÚStaticModulez0
Attempt to load the module by the name
c C sL t j |¡}t|j}| ¡ }W d Q R X t |¡}t| t
¡ | `d S )N)Ú importlibÚutilÚ find_specÚopenÚoriginÚreadÚastÚparseÚvarsÚupdateÚlocalsÚself)r ÚnameÚspecÚstrmÚsrcÚmodule© r ú/build/wlanpi-profiler-7At3M6/wlanpi-profiler-1.0.10/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/setuptools/config.pyÚ__init__ s
zStaticModule.__init__c
sV yt fdd| jjD S tk
rP } ztdjf t |W d d }~X Y nX d S )Nc 3 sH | ]@}t |tjr|jD ](}t |tjr|j krt |j¡V qqd S )N)Ú
isinstancer ZAssignÚtargetsÚNameÚidÚliteral_evalÚvalue)Ú.0Z statementÚtarget)Úattrr r ú <genexpr>$ s
z+StaticModule.__getattr__.<locals>.<genexpr>z#{self.name} has no attribute {attr})Únextr ÚbodyÚ ExceptionÚAttributeErrorÚformatr )r r( Úer )r( r Ú__getattr__! s
zStaticModule.__getattr__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r0 r r r r r s r c c s, zt j d| ¡ dV W dt j | ¡ X dS )zH
Add path to front of sys.path for the duration of the context.
r N)ÚsysÚpathÚinsertÚremove)r6 r r r Ú
patch_path0 s
r9 Fc 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; Úosr6 Ú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<