관리-도구
편집 파일: windows.cpython-310.pyc
o ƚRe � @ s� d dl Z d dlZd dlmZ d dlmZmZ ddlmZ G dd� de�Z de d e fd d�Zde d e fdd �Zde d e fdd�Z d ee ge f fdd�Zedd�e� �ZdgZdS )� N)� lru_cache)�Callable�Optional� )�PlatformDirsABCc @ s� e Zd ZdZedefdd��Zdd�dedee defd d �Zedefdd��Z edefd d��Z edefdd��Zedefdd��Zedefdd��Z edefdd��Zedefdd��Zedefdd��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 rdnd}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-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/platformdirs/windows.py� user_data_dir s zWindows.user_data_dirN�� opinion_valuer r c C st g }| j r0| jdur| jp| j }|�|� |�| j � |d ur'| jr'|�|� | jr0|�| 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 � | j S )zC:return: config directory tied to the user, same as `user_data_dir`�r �r r r r �user_config_dir1 � zWindows.user_config_dirc C r$ )zF:return: config directory shared by the users, same as `site_data_dir`)r# r&