| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.6/site-packages/pip/_vendor/platformdirs/__pycache__/ |
Upload File : |
3
�N�a: � @ sf d dl Z d dlZd dlmZmZ d dlmZ d dlmZm Z ej
d
krRd dlmZ G dd � d e�ZdS )� N)�ABC�abstractmethod)�Path)�Optional�Union� � )�Literalc @ s� e Zd ZdZd1ee eeddf ee eeed�dd�Zeed �d
d�Z e
eed�d
d���Ze
eed�dd���Z
e
eed�dd���Ze
eed�dd���Ze
eed�dd���Ze
eed�dd���Ze
eed�dd���Ze
eed�dd���Ze
eed�dd���Ze
ed�dd ��Ze
ed�d!d"��Ze
ed�d#d$��Ze
ed�d%d&��Ze
ed�d'd(��Ze
ed�d)d*��Ze
ed�d+d,��Ze
ed�d-d.��Ze
ed�d/d0��ZdS )2�PlatformDirsABCz7
Abstract base class for platform directories.
NFTzLiteral[False])�appname� appauthor�version�roaming� multipath�opinionc C s( || _ || _|| _|| _|| _|| _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 �/usr/lib/python3.6/api.py�__init__ s zPlatformDirsABC.__init__)�base�returnc G sJ t |dd � �}| jr4|j| j� | jr4|j| j� tjj|d f|�� 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_version)r c C s dS )z(:return: data directory tied to the userNr )r r r r �
user_data_dirC s zPlatformDirsABC.user_data_dirc C s dS )z':return: data directory shared by usersNr )r r r r �
site_data_dirH s zPlatformDirsABC.site_data_dirc C s dS )z*:return: config directory tied to the userNr )r r r r �user_config_dirM s zPlatformDirsABC.user_config_dirc C s dS )z-:return: config directory shared by the usersNr )r r r r �site_config_dirR s zPlatformDirsABC.site_config_dirc C s dS )z):return: cache directory tied to the userNr )r r r r �user_cache_dirW s zPlatformDirsABC.user_cache_dirc C s dS )z):return: state directory tied to the userNr )r r r r �user_state_dir\ s zPlatformDirsABC.user_state_dirc C s dS )z':return: log directory tied to the userNr )r r r r �user_log_dira s zPlatformDirsABC.user_log_dirc C s dS )z-:return: documents directory tied to the userNr )r r r r �user_documents_dirf s z"PlatformDirsABC.user_documents_dirc C s dS )z+:return: runtime directory tied to the userNr )r r r r �user_runtime_dirk s z PlatformDirsABC.user_runtime_dirc C s
t | j�S )z#:return: data path tied to the user)r r )r r r r �user_data_pathp s zPlatformDirsABC.user_data_pathc C s
t | j�S )z":return: data path shared by users)r r )r r r r �site_data_pathu s zPlatformDirsABC.site_data_pathc C s
t | j�S )z%:return: config path tied to the user)r r! )r r r r �user_config_pathz s z PlatformDirsABC.user_config_pathc C s
t | j�S )z(:return: config path shared by the users)r r"