????
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/platformdirs/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/platformdirs/__pycache__/windows.cpython-311.pyc |
� ���2v� � �� � d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl mZ e rddlm Z G d � d e� � Zdd�Zdd�Zdd�Zdd�Zdd�Z ed�� � e� � � � Zd gZdS )zWindows.� )�annotationsN)� lru_cache)� TYPE_CHECKING� )�PlatformDirsABC)�Callablec � � e Zd ZdZedd�� � Zdd�dd �Zedd�� � Zedd�� � Zedd �� � Z edd�� � Z edd�� � Zedd�� � Zedd�� � Z edd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � 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>`, `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`. �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 �e/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/platformdirs/windows.py� user_data_dirzWindows.user_data_dir sF � � $(�<�J���5J���w����u� 5� 5�6�6���!�!�$�'�'�'� N�� opinion_valuer r � str | Nonec �z � 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�_optionally_create_directory)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_dir7 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_dir= � � � �!�!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_dirB r1 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_dirG s; � � �w����/D� E� E�F�F���!�!�$�g�!�>�>�>r c � � t j � t d� � � � }| � |d�� � S )zd:return: cache directory shared by users, e.g. ``C:\ProgramData\$appauthor\$appname\Cache\$version``r) r5 r r* r+ s r �site_cache_dirzWindows.site_cache_dirP s; � � �w����/E� F� F�G�G���!�!�$�g�!�>�>�>r c � � | j S )zB:return: state directory tied to the user, same as `user_data_dir`r. r/ s r �user_state_dirzWindows.user_state_dirV r1 r c � � | j }| j r5t j � |d� � }| � |� � |S )zg:return: log directory tied to the user, same as `user_data_dir` if not opinionated else ``Logs`` in it�Logs)r r"