U ʗRe.@sbddlmZddlZddlZddlmZmZddlmZej dkrNddl m Z GdddeZ dS) ) annotationsN)ABCabstractmethod)Path))Literalc@seZdZdZd5dddddddd d Zd d d d dZeed dddZeed dddZ eed dddZ eed dddZ eed dddZ eed dddZ eed dddZeed dddZeed dd d!Zed"dd#d$Zed"dd%d&Zed"dd'd(Zed"dd)d*Zed"dd+d,Zed"dd-d.Zed"dd/d0Zed"dd1d2Zed"dd3d4ZdS)6PlatformDirsABCz7 Abstract base class for platform directories. NFTz str | Nonezstr | None | Literal[False]boolappname appauthorversionroaming multipathopinioncCs(||_||_||_||_||_||_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`. Nr )selfr r rrrrr/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/platformdirs/api.py__init__s zPlatformDirsABC.__init__str)basereturncGsJt|dd}|jr4||j|jr4||jtjj|df|S)Nr)listr appendrospathjoin)rrparamsrrr_append_app_name_and_version<s   z,PlatformDirsABC._append_app_name_and_version)rcCsdS)z(:return: data directory tied to the userNrrrrr user_data_dirDszPlatformDirsABC.user_data_dircCsdS)z':return: data directory shared by usersNrr!rrr site_data_dirIszPlatformDirsABC.site_data_dircCsdS)z*:return: config directory tied to the userNrr!rrruser_config_dirNszPlatformDirsABC.user_config_dircCsdS)z-:return: config directory shared by the usersNrr!rrrsite_config_dirSszPlatformDirsABC.site_config_dircCsdS)z):return: cache directory tied to the userNrr!rrruser_cache_dirXszPlatformDirsABC.user_cache_dircCsdS)z):return: state directory tied to the userNrr!rrruser_state_dir]szPlatformDirsABC.user_state_dircCsdS)z':return: log directory tied to the userNrr!rrr user_log_dirbszPlatformDirsABC.user_log_dircCsdS)z-:return: documents directory tied to the userNrr!rrruser_documents_dirgsz"PlatformDirsABC.user_documents_dircCsdS)z+:return: runtime directory tied to the userNrr!rrruser_runtime_dirlsz PlatformDirsABC.user_runtime_dirrcCs t|jS)z#:return: data path tied to the user)rr"r!rrruser_data_pathqszPlatformDirsABC.user_data_pathcCs t|jS)z":return: data path shared by users)rr#r!rrrsite_data_pathvszPlatformDirsABC.site_data_pathcCs t|jS)z%:return: config path tied to the user)rr$r!rrruser_config_path{sz PlatformDirsABC.user_config_pathcCs t|jS)z(:return: config path shared by the users)rr%r!rrrsite_config_pathsz PlatformDirsABC.site_config_pathcCs t|jS)z$:return: cache path tied to the user)rr&r!rrruser_cache_pathszPlatformDirsABC.user_cache_pathcCs t|jS)z$:return: state path tied to the user)rr'r!rrruser_state_pathszPlatformDirsABC.user_state_pathcCs t|jS)z":return: log path tied to the user)rr(r!rrr user_log_pathszPlatformDirsABC.user_log_pathcCs t|jS)z(:return: documents path tied to the user)rr)r!rrruser_documents_pathsz#PlatformDirsABC.user_documents_pathcCs t|jS)z&:return: runtime path tied to the user)rr*r!rrruser_runtime_pathsz!PlatformDirsABC.user_runtime_path)NNNFFT)__name__ __module__ __qualname____doc__rr propertyrr"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3rrrrr sl+r ) __future__rrsysabcrrpathlibr version_infotypingrr rrrrs