AlkantarClanX12

Your IP : 18.219.25.226


Current Path : /opt/alt/python37/lib/python3.7/site-packages/platformdirs/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/platformdirs/__pycache__/api.cpython-37.pyc

B

Ĥ�a.�@sbddlmZddlZddlZddlmZmZddlmZej	dkrNddl
mZGdd�de�ZdS)	�)�annotationsN)�ABC�abstractmethod)�Path)��)�Literalc@s�eZdZdZd5ddddddd�d	d
�Zddd�d
d�Zeedd�dd���Zeedd�dd���Z	eedd�dd���Z
eedd�dd���Zeedd�dd���Zeedd�dd���Z
eedd�dd���Zeedd�dd���Zeedd�d d!���Zed"d�d#d$��Zed"d�d%d&��Zed"d�d'd(��Zed"d�d)d*��Zed"d�d+d,��Zed"d�d-d.��Zed"d�d/d0��Zed"d�d1d2��Zed"d�d3d4��ZdS)6�PlatformDirsABCz7
    Abstract base class for platform directories.
    NFTz
str | Nonezstr | None | Literal[False]�bool)�appname�	appauthor�version�roaming�	multipath�opinioncCs(||_||_||_||_||_||_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)rrr
rrr)�selfrrr
rrr�r�A/opt/alt/python37/lib/python3.7/site-packages/platformdirs/api.py�__init__szPlatformDirsABC.__init__�str)�base�returncGsJt|dd��}|jr4|�|j�|jr4|�|j�tjj|df|��S)N�r)�listr�appendr
�os�path�join)rr�paramsrrr�_append_app_name_and_version<sz,PlatformDirsABC._append_app_name_and_version)rcCsdS)z(:return: data directory tied to the userNr)rrrr�
user_data_dirDszPlatformDirsABC.user_data_dircCsdS)z':return: data directory shared by usersNr)rrrr�
site_data_dirIszPlatformDirsABC.site_data_dircCsdS)z*:return: config directory tied to the userNr)rrrr�user_config_dirNszPlatformDirsABC.user_config_dircCsdS)z-:return: config directory shared by the usersNr)rrrr�site_config_dirSszPlatformDirsABC.site_config_dircCsdS)z):return: cache directory tied to the userNr)rrrr�user_cache_dirXszPlatformDirsABC.user_cache_dircCsdS)z):return: state directory tied to the userNr)rrrr�user_state_dir]szPlatformDirsABC.user_state_dircCsdS)z':return: log directory tied to the userNr)rrrr�user_log_dirbszPlatformDirsABC.user_log_dircCsdS)z-:return: documents directory tied to the userNr)rrrr�user_documents_dirgsz"PlatformDirsABC.user_documents_dircCsdS)z+:return: runtime directory tied to the userNr)rrrr�user_runtime_dirlsz PlatformDirsABC.user_runtime_dirrcCs
t|j�S)z#:return: data path tied to the user)rr )rrrr�user_data_pathqszPlatformDirsABC.user_data_pathcCs
t|j�S)z":return: data path shared by users)rr!)rrrr�site_data_pathvszPlatformDirsABC.site_data_pathcCs
t|j�S)z%:return: config path tied to the user)rr")rrrr�user_config_path{sz PlatformDirsABC.user_config_pathcCs
t|j�S)z(:return: config path shared by the users)rr#)rrrr�site_config_path�sz PlatformDirsABC.site_config_pathcCs
t|j�S)z$:return: cache path tied to the user)rr$)rrrr�user_cache_path�szPlatformDirsABC.user_cache_pathcCs
t|j�S)z$:return: state path tied to the user)rr%)rrrr�user_state_path�szPlatformDirsABC.user_state_pathcCs
t|j�S)z":return: log path tied to the user)rr&)rrrr�
user_log_path�szPlatformDirsABC.user_log_pathcCs
t|j�S)z(:return: documents path tied to the user)rr')rrrr�user_documents_path�sz#PlatformDirsABC.user_documents_pathcCs
t|j�S)z&:return: runtime path tied to the user)rr()rrrr�user_runtime_path�sz!PlatformDirsABC.user_runtime_path)NNNFFT)�__name__�
__module__�__qualname__�__doc__rr�propertyrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1rrrrr	sF$r	)
�
__future__rr�sys�abcrrZpathlibr�version_info�typingrr	rrrr�<module>s