관리-도구
편집 파일: api.cpython-39.pyc
a ��Re: � @ sf d dl Z d dlZd dlmZmZ d dlmZ d dlmZm Z ej dkrRd dlmZ G dd� de�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`. Nr )�selfr r r r r r � r ��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_vendor/platformdirs/api.py�__init__ s zPlatformDirsABC.__init__)�base�returnc G sL t |dd � �}| jr4|�| j� | jr4|�| 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_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"