i~dZddlZddlZddlmZdedefdZd dededefd Z d dededefd Z dede efd 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) platformdirsappnamereturnc.tj|dS)NF) appauthor)_appdirsuser_cache_dir)rs {/builddir/build/BUILD/imunify360-venv-2.6.2/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)sysplatformrruser_config_dir)rr s r rr!s7 |x%gw777  #Gug N N NNr c(tjdkr6tj|dd}|t jStj|dd}tjdkr|gS|t jdgzS)NrFT)r multipathwin32z/etc)rrr site_data_dirsplitrpathsepsite_config_dir)rdirvals r site_config_dirsr$*s |x'5DQQQ||BJ'''  %g$ O O OF |wx << # #vh ..r )T) __doc__rr pip._vendorrrstrr boolrrlistr$r r r+s 000000=C=C==== / /C /$ /# / / / /OOSO4O3OOOO /c /d3i / / / / / /r