7fdZddlZddlZddlmZddlmZdedefdZ d ded e defd Z d ded e defd Z dedeefd 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. N)List) platformdirsappnamereturnc.tj|dS)NF) appauthor)_appdirsuser_cache_dir)rs {/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/utils/appdirs.pyr r s  "7e < < <<Troamingctj|d|}tj|r|Sd}|r tj||}tj|S)NFrr z ~/.config/)r user_data_dirospathisdirjoin expanduser)rr rlinux_like_paths r _macos_user_config_dirrso  !'UG L L LD w}}T #OA',,@@ 7  o . ..r cptjdkrt||Stj|d|S)NdarwinFr)sysplatformrr user_config_dir)rr s r rr"s7 |x%gw777  #Gug N N NNr ctjdkrtj|ddgStj|dd}tjdkr|gS|t jdgzS)NrFT)r multipathwin32z/etc)rrr site_data_dirsite_config_dirsplitrpathsep)rdirvals r site_config_dirsr%+sr |x&w%4PPPQQ  %g$ O O OF |wx << # #vh ..r )T)__doc__rrtypingr pip._vendorrr strr boolrrr%r r r,s 000000=C=C==== / /C /$ /# / / / /OOSO4O3OOOO /c /d3i / / / / / /r