zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
U
H=®dEã@s^dZddlmZddlZddlmZddlmZer@ddl    m
Z
dd„Z dd
d „Z d d „Z dS)zù
This code wraps the vendored appdirs module to so the return values are
compatible for the current pip code base.
 
The intention is to rewrite current usages gradually, keeping the tests pass,
and eventually drop this after all usages are changed.
é)Úabsolute_importN)Úappdirs)ÚMYPY_CHECK_RUNNING)ÚListcCstj|ddS)NF)Ú    appauthor)Ú_appdirsÚuser_cache_dir)Úappname©r
úRD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/utils/appdirs.pyrsrTcCsHtj|d|d}tjdkrDtj |¡sDtj d¡}|rDtj ||¡}|S)NF)rÚroamingÚdarwinz
~/.config/)rÚuser_config_dirÚsystemÚosÚpathÚisdirÚ
expanduserÚjoin)r    r rr
r
r rs  rcCs2tj|ddd}tjdkr,| tj¡dgS|gS)NFT)rÚ    multipath)Úwin32r z/etc)rÚsite_config_dirrÚsplitrÚpathsep)r    Údirvalr
r
r Úsite_config_dirs&s
r)T)Ú__doc__Ú
__future__rrÚ pip._vendorrrÚpip._internal.utils.typingrÚtypingrrrrr
r
r
r Ú<module>s