Current File : //usr/lib/python3/dist-packages/pip/_vendor/platformdirs/__pycache__/windows.cpython-312.pyc |
�
/�ge% � �� � d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl
mZ e rddlm
Z
G d � d
e� Zdd�Zdd�Zdd
�Zdd�Zdd�Z ed�� e� � Zd
gZy)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�� Zy)�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>`.
c � � | j rdnd}t j j t |� � }| j |� 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 �B/usr/lib/python3/dist-packages/pip/_vendor/platformdirs/windows.py�
user_data_dirzWindows.user_data_dir s<