관리-도구
편집 파일: windows.cpython-311.pyc
� �܋f� � �� � d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ ddl m Z G d� de � � Zdd�Zdd �Z dd�Zdd�Z ed�� � e� � � � ZdgZdS )� )�annotationsN)� lru_cache)�Callable� )�PlatformDirsABCc � � e Zd ZdZedd�� � Zdd�dd �Zedd�� � Zedd�� � Zedd �� � Z edd�� � Z edd�� � Zedd�� � Zedd�� � Z edd�� � 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>`.�return�strc � � | 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/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pkg_resources/_vendor/platformdirs/windows.py� user_data_dirzWindows.user_data_dir sF � � $(�<�J���5J���w����u� 5� 5�6�6���!�!�$�'�'�'� N�� opinion_valuer r � str | Nonec �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_dir4 � � � �!�!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_dir9 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( r) s r �user_cache_dirzWindows.user_cache_dir>