/usr/lib/python3/dist-packages/setuptools/__pycache__
Edit: /usr/lib/python3/dist-packages/setuptools/__pycache__/config.cpython-310.pyc (20897B)
o
_aqZ @ 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)partialwraps)iglob)DistutilsOptionErrorDistutilsFileError)VersionInvalidVersion)SpecifierSetc @ s e Zd ZdZdd Zdd ZdS )StaticModulez0
Attempt to load the module by the name
c C s` t j|}t|j}| }W d n1 sw Y t|}t| t
| `d S N) importlibutil find_specopenoriginreadastparsevarsupdatelocalsself)r namespecstrmsrcmodule r 3/usr/lib/python3/dist-packages/setuptools/config.py__init__ s
zStaticModule.__init__c
sN zt fdd| jjD W S ty& } ztdjdi t |d }~ww )Nc 3 sJ | ] }t |tjr"|jD ]}t |tjr!|j kr
t|jV q
qd S r
)
isinstancer AssigntargetsNameidliteral_evalvalue).0 statementtargetattrr r
# s
z+StaticModule.__getattr__..z#{self.name} has no attribute {attr}r )nextr body ExceptionAttributeErrorformatr )r r- er r, r __getattr__! s
zStaticModule.__getattr__N)__name__
__module____qualname____doc__r! r5 r r r r r s r c c s8 zt jd| dV W t j| dS t j| w )zH
Add path to front of sys.path for the duration of the context.
r N)syspathinsertremove)r; r r r
patch_path0 s
r> Fc C s ddl m}m} tj| } tj| std| t }t tj
| z-| }|r1| ng }| |vr<|| |j
||d t||j|d}W t | t|S t | w )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_errors)setuptools.distr? r@ osr; abspathisfiler getcwdchdirdirnamefind_config_filesappendparse_config_filesparse_configurationcommand_optionsconfiguration_to_dict) filepathfind_othersrB r? r@ current_directorydistrA handlersr r r read_configuration<