관리-도구
편집 파일: windows.cpython-39.pyc
a ��Re � @ s� d dl Z d dlZd dlmZ d dlmZmZ ddlmZ G dd� de�Z e e d�d d �Ze e d�dd�Ze e d�d d�Z ee ge f d�dd�Zedd�e� �ZdgZdS )� N)� lru_cache)�Callable�Optional� )�PlatformDirsABCc @ s� e Zd ZdZeed�dd��Zdd�eee ed�dd �Zeed�d d��Z eed�dd ��Z eed�dd��Zeed�dd��Zeed�dd��Z eed�dd��Zeed�dd��Zeed�dd��ZdS )�Windowsa� `MSDN on where to store app data files <http://support.microsoft.com/default.aspx?scid=kb;en-us;310294#XSLTH3194121123120121120120>`_. Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`, `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`, `version <platformdirs.api.PlatformDirsABC.version>`, `roaming <platformdirs.api.PlatformDirsABC.roaming>`, `opinion <platformdirs.api.PlatformDirsABC.opinion>`.��returnc C s( | j r dnd}tj�t|��}| �|�S )z� :return: data directory tied to the user, e.g. ``%USERPROFILE%\AppData\Local\$appauthor\$appname`` (not roaming) or ``%USERPROFILE%\AppData\Roaming\$appauthor\$appname`` (roaming) � CSIDL_APPDATA�CSIDL_LOCAL_APPDATA)�roaming�os�path�normpath�get_win_folder� _append_parts)�self�constr � 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/windows.py� user_data_dir s zWindows.user_data_dirN�� opinion_value)r r r c C st g }| j r`| jdur*| jp| j }|�|� |�| j � |d urN| jrN|�|� | jr`|�| j� tjj|g|�R � S )NF)�appname� appauthor�append�opinion�versionr r �join)r r r �params�authorr r r r s zWindows._append_partsc C s t j�td��}| �|�S )zT:return: data directory shared by users, e.g. ``C:\ProgramData\$appauthor\$appname``�CSIDL_COMMON_APPDATA�r r r r r �r r r r r � site_data_dir+ s zWindows.site_data_dirc C s | j S )zC:return: config directory tied to the user, same as `user_data_dir`�r �r r r r �user_config_dir1 s zWindows.user_config_dirc C s | j S )zF:return: config directory shared by the users, same as `site_data_dir`)r$ r&