관리-도구
편집 파일: api.cpython-310.pyc
o ƚRe: � @ 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-3.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"