K{J2dZddlmZddlZddlZddlmZddlmZddl m Z ddl m Z erdd l mZejd krdd lmZndd lmZd>dZeZeZ d?d@dZ d?dAdZ d?d@dZ d?dAdZ dBdCd Z dBdCd!Z d?d@d"Z dBdCd#ZdDd$ZdDd%ZdDd&ZdDd'Z dDd(Z!dDd)Z" dBdCd*Z# dBdCd+Z$ d?dEd-Z% d?dFd.Z& d?dEd/Z' d?dFd0Z( dBdGd1Z) dBdGd2Z* d?dEd3Z+ dBdGd4Z,dHd5Z-dHd6Z.dHd7Z/dHd8Z0dHd9Z1dHd:Z2 dBdGd;Z3 dBdGd<Z4gd=Z5dS)Iz Utilities for determining application-specific dirs. See for details and usage. ) annotationsN) TYPE_CHECKING)PlatformDirsABC) __version__)__version_tuple__)Path))Literalreturntype[PlatformDirsABC]cRtjdkrddlm}ntjdkrddlm}nddlm}tj ddkrZtj d d krBtj d stj d r|Sdd l m }|ddl m }|S|S)Nwin32r)Windowsdarwin)MacOS)Unix ANDROID_DATAz/data ANDROID_ROOTz/systemSHELLPREFIX)_android_folder)Android) sysplatformplatformdirs.windowsrplatformdirs.macosrplatformdirs.unixrosgetenvplatformdirs.androidrr)Resultrrs g/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/platformdirs/__init__.py_set_platform_dir_classr%s |w:::::::  ! !6666666444444 y  G++ .0I0IY0V0V 9W   8!4!4 M888888 ?   ( 4 4 4 4 4 4N MFappname str | None appauthorstr | None | Literal[False]versionroamingbool ensure_existsstrc4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param roaming: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: data directory tied to the user r'r)r+r,r.) PlatformDirs user_data_dirr1s r$r3r32/ #      r& multipathc4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param multipath: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: data directory shared by users r'r)r+r5r.)r2 site_data_dirr7s r$r8r8Js/ #      r&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param roaming: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: config directory tied to the user r1)r2user_config_dirr1s r$r:r:b/ #      r&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param multipath: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: config directory shared by the users r7)r2site_config_dirr7s r$r=r=zs/ #      r&Topinionc4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param opinion: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: cache directory tied to the user r'r)r+r>r.)r2user_cache_dirr@s r$rArA/ #      r&c4t|||||jSa :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param opinion: See `opinion `. :param ensure_exists: See `ensure_exists `. :returns: cache directory tied to the user r@)r2site_cache_dirr@s r$rErErBr&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param roaming: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: state directory tied to the user r1)r2user_state_dirr1s r$rGrGrBr&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param opinion: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: log directory tied to the user r@)r2 user_log_dirr@s r$rIrIs/ #      r&c(tjS)z.:returns: documents directory tied to the user)r2user_documents_dirr&r$rKrK >> ,,r&c(tjS)z.:returns: downloads directory tied to the user)r2user_downloads_dirrLr&r$rOrOrMr&c(tjS)z-:returns: pictures directory tied to the user)r2user_pictures_dirrLr&r$rQrQ >> ++r&c(tjS)z+:returns: videos directory tied to the user)r2user_videos_dirrLr&r$rTrT >> ))r&c(tjS)z*:returns: music directory tied to the user)r2user_music_dirrLr&r$rWrWs >> ((r&c(tjS)z,:returns: desktop directory tied to the user)r2user_desktop_dirrLr&r$rYrY  >> **r&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param opinion: See `opinion `. :param ensure_exists: See `ensure_exists `. :returns: runtime directory tied to the user r@)r2user_runtime_dirr@s r$r\r\/ #      r&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param opinion: See `opinion `. :param ensure_exists: See `ensure_exists `. :returns: runtime directory shared by users r@)r2site_runtime_dirr@s r$r_r_(r]r&r c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param roaming: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: data path tied to the user r1)r2user_data_pathr1s r$rara@rBr&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param multipath: See `multipath `. :param ensure_exists: See `ensure_exists `. :returns: data path shared by users r7)r2site_data_pathr7s r$rcrcXs/ #      r&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param roaming: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: config path tied to the user r1)r2user_config_pathr1s r$rerepr]r&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param multipath: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: config path shared by the users r7)r2site_config_pathr7s r$rgrgs/ #      r&c4t|||||jSrD)r2site_cache_pathr@s r$ririr;r&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param opinion: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: cache path tied to the user r@)r2user_cache_pathr@s r$rkrkr;r&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param roaming: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: state path tied to the user r1)r2user_state_pathr1s r$rmrmr;r&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param opinion: See `roaming `. :param ensure_exists: See `ensure_exists `. :returns: log path tied to the user r@)r2 user_log_pathr@s r$roror4r&c(tjS)z):returns: documents path tied to the user)r2user_documents_pathrLr&r$rqrq >> --r&c(tjS)z):returns: downloads path tied to the user)r2user_downloads_pathrLr&r$rtrtrrr&c(tjS)z(:returns: pictures path tied to the user)r2user_pictures_pathrLr&r$rvrv rMr&c(tjS)z&:returns: videos path tied to the user)r2user_videos_pathrLr&r$rxrxrZr&c(tjS)z%:returns: music path tied to the user)r2user_music_pathrLr&r$rzrzrUr&c(tjS)z':returns: desktop path tied to the user)r2user_desktop_pathrLr&r$r|r|rRr&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param opinion: See `opinion `. :param ensure_exists: See `ensure_exists `. :returns: runtime path tied to the user r@)r2user_runtime_pathr@s r$r~r~/ #      r&c4t|||||jS)a :param appname: See `appname `. :param appauthor: See `appauthor `. :param version: See `version `. :param opinion: See `opinion `. :param ensure_exists: See `ensure_exists `. :returns: runtime path shared by users r@)r2site_runtime_pathr@s r$rr6rr&)%r__version_info__r2AppDirsrr3r:rArGrIrKrOrQrTrWrYr\r8r=rEr_rarerkrmrorqrtrvrxrzr|r~rcrgrir)r r)NNNFF) r'r(r)r*r+r(r,r-r.r-r r/) r'r(r)r*r+r(r5r-r.r-r r/)NNNTF) r'r(r)r*r+r(r>r-r.r-r r/)r r/) r'r(r)r*r+r(r,r-r.r-r r ) r'r(r)r*r+r(r5r-r.r-r r ) r'r(r)r*r+r(r>r-r.r-r r )r r )6__doc__ __future__rr rtypingrapirr+rrrpathlibr version_infor typing_extensionsr%r2rr3r8r:r=rArErGrIrKrOrQrTrWrYr\r_rarcrergrirkrmrorqrtrvrxrzr|r~r__all__rLr&r$rsB#""""" ::::::. 6!!"""""""------,'&(( -1 2-1 2-1 2-1 2-1 2-1 2-1 2-1 0---- ---- ,,,, **** )))) ++++ -1 2-1 2-1 2-1 2-1 2-1 2-1 2-1 2-1 2-1 0.... .... ---- ++++ **** ,,,, -1 2-1 0& & & r&