| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/pip/_internal/utils/__pycache__/ |
Upload File : |
�
T8�h� � �v � d Z ddlZddlZddlmZ dedefd�Zddededefd�Z ddededefd �Z
dedee fd
�Zy)z�
This code wraps the vendored appdirs module to so the return values are
compatible for the current pip code base.
The intention is to rewrite current usages gradually, keeping the tests pass,
and eventually drop this after all usages are changed.
� N)�platformdirs�appname�returnc �0 � t j | d�� S )NF)� appauthor)�_appdirs�user_cache_dir)r s �=C:\Python312\Lib\site-packages\pip/_internal/utils/appdirs.pyr r s � ��"�"�7�e�<�<� �roamingc � � t j | d|�� }t j j |� r|S d}| r t j j || � }t j j
|� S )NF�r r z
~/.config/)r �
user_data_dir�os�path�isdir�join�
expanduser)r r r �linux_like_paths r
�_macos_user_config_dirr s^ � ��!�!�'�U�G�L�D� �w�w�}�}�T���� #�O���'�'�,�,���@��
�7�7���o�.�.r c �p � t j dk( rt | |� S t j | d|�� S )N�darwinFr )�sys�platformr r �user_config_dir)r r s r
r r ! s0 � �
�|�|�x��%�g�w�7�7��#�#�G�u�g�N�Nr c �8 � t j dk( r7t j | dd�� }|j t
j � S t j | dd�� }t j dk( r|gS |j t
j � dgz S )Nr FT)r � multipath�win32z/etc)r r r �
site_data_dir�splitr �pathsep�site_config_dir)r �dirvals r
�site_config_dirsr$ * sx � �
�|�|�x���'�'��5�D�Q���|�|�B�J�J�'�'�
�
%�
%�g��$�
O�F�
�|�|�w���x�� �<�<��
�
�#�v�h�.�.r )T)
�__doc__r r �pip._vendorr r �strr �boolr r �listr$ � r r
�<module>r+ sw ���
�
� 0�=�C� =�C� =�/�C� /�$� /�#� /�O�S� O�4� O�3� O�
/�c�
/�d�3�i�
/r