zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
U
G=®dT    ã@sddZddlZddlZddlZddlmZdZdZdZ    dZ
dZ d    d
„Z dd d „Z dd d„Zdd„ZdS)zX
Re-implementation of find_module and get_frozen_object
from the deprecated imp module.
éNé)Úmodule_from_specéééécCs(t|tƒrtj ¡jntjj}|||ƒS)N)Ú
isinstanceÚlistÚ    importlibÚ    machineryÚ
PathFinderÚ    find_specÚutil)ÚmoduleÚpathsÚfinder©rúFD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\setuptools/_imp.pyr s
ÿýr c    CsRt||ƒ}|dkrtd|ƒ‚|js>t|dƒr>tj d|j¡}d}d}t|jt    ƒ}|j
dksp|r‚t |jtj j ƒr‚t}d}d}}nÀ|j
dks |r²t |jtj jƒr²t}d}d}}n|jr6|j
}tj |¡d    }|tj jkràd
nd }|tj jkröt}n&|tj jkr
t}n|tj jkrt}|tthkrBt||ƒ}n d}d}}|||||ffS) z7Just like 'imp.find_module()', but with package supportNú Can't find %sÚsubmodule_search_locationsz __init__.pyéÿÿÿÿÚfrozenÚzbuilt-inrÚrÚrb)r Ú ImportErrorÚ has_locationÚhasattrr
rÚspec_from_loaderÚloaderrÚtypeÚoriginÚ
issubclassr ÚFrozenImporterÚ    PY_FROZENÚBuiltinImporterÚ    C_BUILTINÚosÚpathÚsplitextÚSOURCE_SUFFIXESÚ    PY_SOURCEÚBYTECODE_SUFFIXESÚ PY_COMPILEDÚEXTENSION_SUFFIXESÚ C_EXTENSIONÚopen)    rrÚspecÚkindÚfileZstaticr(ÚsuffixÚmoderrrÚ find_modulesJ
  ÿ
ÿ
  r6cCs&t||ƒ}|std|ƒ‚|j |¡S©Nr)r rrÚget_code)rrr1rrrÚget_frozen_objectGs
 r9cCs"t||ƒ}|std|ƒ‚t|ƒSr7)r rr)rrÚinfor1rrrÚ
get_moduleNs
 r;)N)N)Ú__doc__r'Úimportlib.utilr
Úimportlib.machineryZ
py34compatrr+r-r/r&r$r r6r9r;rrrrÚ<module>s     
*