|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /usr/lib/python3/dist-packages/pip/_internal/utils/__pycache__/ |
Upload File : |
o
!��h� � @ s� d Z ddlZddlZddlmZ ddlmZ dedefdd�Z dded
e
defdd�Zdded
e
defd
d�Zdedee fdd�Z
dS )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)�List)�platformdirs�appname�returnc C s t j| dd�S )NF)� appauthor)�_appdirs�user_cache_dir)r � r �=/usr/lib/python3/dist-packages/pip/_internal/utils/appdirs.pyr s r T�roamingc C sB t j| d|d�}tj�|�r|S d}| rtj�|| �}tj�|�S )NF�r r z
~/.config/)r �
user_data_dir�os�path�isdir�join�
expanduser)r r r �linux_like_pathr r r
�_macos_user_config_dir s r c C s$ t jdkr
t| |�S tj| d|d�S )N�darwinFr )�sys�platformr r �user_config_dir)r r r r r
r "