o ai: ã @ sf d dl Z d dlZd dlmZmZ d dlmZ d dlmZm Z ej dkr)d dlmZ G dd„ deƒZdS ) é N)ÚABCÚabstractmethod)ÚPath)ÚOptionalÚUnion)é é )ÚLiteralc @ sÌ e Zd ZdZ d6dee deeddf dee d ed edefdd „Zdedefdd„Z e edefdd„ƒƒZe edefdd„ƒƒZ e edefdd„ƒƒZe edefdd„ƒƒZe edefdd„ƒƒZe edefdd„ƒƒZe edefdd„ƒƒZe edefd d!„ƒƒZe edefd"d#„ƒƒZe defd$d%„ƒZe defd&d'„ƒZe defd(d)„ƒZe defd*d+„ƒZe defd,d-„ƒZe defd.d/„ƒZe defd0d1„ƒZe defd2d3„ƒZe defd4d5„ƒZdS )7ÚPlatformDirsABCz7 Abstract base class for platform directories. NFTÚappnameÚ appauthorzLiteral[False]ÚversionÚroamingÚ multipathÚopinionc C s0 || _ || _ || _ || _ || _ || _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 r r r r r )Úselfr r r r r r © r úŽ/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/platformdirs/api.pyÚ__init__ s zPlatformDirsABC.__init__ÚbaseÚreturnc G sL t |dd … ƒ}| jr| | j¡ | jr| | j¡ tjj|d g|¢R Ž S )Né r )Úlistr Úappendr ÚosÚpathÚjoin)r r Úparamsr r r Ú_append_app_name_and_version; s z,PlatformDirsABC._append_app_name_and_versionc C ó dS )z(:return: data directory tied to the userNr ©r r r r Ú user_data_dirC ó zPlatformDirsABC.user_data_dirc C r )z':return: data directory shared by usersNr r r r r Ú site_data_dirH r" zPlatformDirsABC.site_data_dirc C r )z*:return: config directory tied to the userNr r r r r Úuser_config_dirM r" zPlatformDirsABC.user_config_dirc C r )z-:return: config directory shared by the usersNr r r r r Úsite_config_dirR r" zPlatformDirsABC.site_config_dirc C r )z):return: cache directory tied to the userNr r r r r Úuser_cache_dirW r" zPlatformDirsABC.user_cache_dirc C r )z):return: state directory tied to the userNr r r r r Úuser_state_dir\ r" zPlatformDirsABC.user_state_dirc C r )z':return: log directory tied to the userNr r r r r Úuser_log_dira r" zPlatformDirsABC.user_log_dirc C r )z-:return: documents directory tied to the userNr r r r r Úuser_documents_dirf r" z"PlatformDirsABC.user_documents_dirc C r )z+:return: runtime directory tied to the userNr r r r r Úuser_runtime_dirk r" z PlatformDirsABC.user_runtime_dirc C ó t | jƒS )z#:return: data path tied to the user)r r! r r r r Úuser_data_pathp ó zPlatformDirsABC.user_data_pathc C r+ )z":return: data path shared by users)r r# r r r r Úsite_data_pathu r- zPlatformDirsABC.site_data_pathc C r+ )z%:return: config path tied to the user)r r$ r r r r Úuser_config_pathz r- z PlatformDirsABC.user_config_pathc C r+ )z(:return: config path shared by the users)r r% r r r r Úsite_config_path r- z PlatformDirsABC.site_config_pathc C r+ )z$:return: cache path tied to the user)r r&