관리-도구
편집 파일: windows.cpython-311.pyc
� �Re � �� � d dl Z d dlZd dlmZ d dlmZmZ ddlmZ G d� de� � Z de d e fd �Zde d e fd�Zde d e fd�Z d ee ge f fd �Z ed�� � e� � � � ZdgZdS )� N)� lru_cache)�Callable�Optional� )�PlatformDirsABCc �4 � e Zd ZdZedefd�� � Zdd�dedee defd�Zedefd �� � Z edefd �� � Z edefd�� � Zedefd�� � Zedefd �� � Z edefd�� � Zedefd�� � Zedefd�� � 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 � � | j rdnd}t j � 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 s ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/platformdirs/windows.py� user_data_dirzWindows.user_data_dir sF � � $(�<�J���5J���w����u� 5� 5�6�6���!�!�$�'�'�'� N�� opinion_valuer r c �L � g }| j r�| j dur#| j p| j }|� |� � |� | j � � |�| j r|� |� � | j r|� | j � � t j j |g|�R � S )NF)�appname� appauthor�append�opinion�versionr r �join)r r r �params�authors r r zWindows._append_parts s� � ����<� ,��~�U�*�*���7�4�<��� � �f�%�%�%��M�M�$�,�'�'�'��(�T�\�(�� � �m�,�,�,��|� ,�� � �d�l�+�+�+��w�|�D�*�6�*�*�*�*r c � � t j � t d� � � � }| � |� � S )zT:return: data directory shared by users, e.g. ``C:\ProgramData\$appauthor\$appname``�CSIDL_COMMON_APPDATA�r r r r r �r r s r � site_data_dirzWindows.site_data_dir+ s6 � � �w����/E� F� F�G�G���!�!�$�'�'�'r c � � | j S )zC:return: config directory tied to the user, same as `user_data_dir`�r �r s r �user_config_dirzWindows.user_config_dir1 � � � �!�!r c � � | j S )zF:return: config directory shared by the users, same as `site_data_dir`)r( r+ s r �site_config_dirzWindows.site_config_dir6 r- r c � � t j � t d� � � � }| � |d�� � S )z� :return: cache directory tied to the user (if opinionated with ``Cache`` folder within ``$appname``) e.g. ``%USERPROFILE%\AppData\Local\$appauthor\$appname\Cache\$version`` r �Cacher r&