id.|ddlmZddlZddlZddlmZmZddlmZej dkrddl m Z GddeZ dS) ) annotationsN)ABCabstractmethod)Path))LiteralcpeZdZdZ d&d'dZd(dZeed)dZeed)dZ eed)dZ eed)dZ eed)dZ eed)dZ eed)dZeed)dZeed)dZed*dZed*dZed*dZed*d Zed*d!Zed*d"Zed*d#Zed*d$Zed*d%ZdS)+PlatformDirsABCz7 Abstract base class for platform directories. NFTappname str | None appauthorstr | None | Literal[False]versionroamingbool multipathopinioncb||_||_ ||_ ||_ ||_ ||_dS)a% Create a new platform directory. :param appname: See `appname`. :param appauthor: See `appauthor`. :param version: See `version`. :param roaming: See `roaming`. :param multipath: See `multipath`. :param opinion: See `opinion`. N)r rrrrr)selfr rrrrrs E/opt/cloudlinux/venv/lib/python3.11/site-packages/platformdirs/api.py__init__zPlatformDirsABC.__init__sN& "     #  basestrreturnct|dd}|jr;||j|jr||jt jj|dg|RS)Nr)listr appendrospathjoin)rrparamss r_append_app_name_and_versionz,PlatformDirsABC._append_app_name_and_version<sod122h < , MM$, ' ' '| , dl+++w|DG-f----rcdS)z(:return: data directory tied to the userNrs r user_data_dirzPlatformDirsABC.user_data_dirDrcdS)z':return: data directory shared by usersNr'r(s r site_data_dirzPlatformDirsABC.site_data_dirIr*rcdS)z*:return: config directory tied to the userNr'r(s ruser_config_dirzPlatformDirsABC.user_config_dirNr*rcdS)z-:return: config directory shared by the usersNr'r(s rsite_config_dirzPlatformDirsABC.site_config_dirSr*rcdS)z):return: cache directory tied to the userNr'r(s ruser_cache_dirzPlatformDirsABC.user_cache_dirXr*rcdS)z):return: state directory tied to the userNr'r(s ruser_state_dirzPlatformDirsABC.user_state_dir]r*rcdS)z':return: log directory tied to the userNr'r(s r user_log_dirzPlatformDirsABC.user_log_dirbr*rcdS)z-:return: documents directory tied to the userNr'r(s ruser_documents_dirz"PlatformDirsABC.user_documents_dirgr*rcdS)z+:return: runtime directory tied to the userNr'r(s ruser_runtime_dirz PlatformDirsABC.user_runtime_dirlr*rrc*t|jS)z#:return: data path tied to the user)rr)r(s ruser_data_pathzPlatformDirsABC.user_data_pathqD&'''rc*t|jS)z":return: data path shared by users)rr,r(s rsite_data_pathzPlatformDirsABC.site_data_pathvr=rc*t|jS)z%:return: config path tied to the user)rr.r(s ruser_config_pathz PlatformDirsABC.user_config_path{D()))rc*t|jS)z(:return: config path shared by the users)rr0r(s rsite_config_pathz PlatformDirsABC.site_config_pathrBrc*t|jS)z$:return: cache path tied to the user)rr2r(s ruser_cache_pathzPlatformDirsABC.user_cache_pathD'(((rc*t|jS)z$:return: state path tied to the user)rr4r(s ruser_state_pathzPlatformDirsABC.user_state_pathrGrc*t|jS)z":return: log path tied to the user)rr6r(s r user_log_pathzPlatformDirsABC.user_log_pathsD%&&&rc*t|jS)z(:return: documents path tied to the user)rr8r(s ruser_documents_pathz#PlatformDirsABC.user_documents_pathsD+,,,rc*t|jS)z&:return: runtime path tied to the user)rr:r(s ruser_runtime_pathz!PlatformDirsABC.user_runtime_pathsD)***r)NNNFFT) r r rrrr rrrrrr)rrrr)rr)rr)__name__ __module__ __qualname____doc__rr%propertyrr)r,r.r0r2r4r6r8r:r<r?rArDrFrIrKrMrOr'rrr r s #15")))))V....777^X7666^X6999^X9<<<^X<888^X8888^X8666^X6<<<^X<:::^X:(((X((((X(***X****X*)))X))))X)'''X'---X-+++X+++rr ) __future__rr!sysabcrrpathlibr version_infotypingr r r'rrr[s"""""" ########vP+P+P+P+P+cP+P+P+P+P+r