Current File : //usr/lib/python3/dist-packages/pip/_internal/utils/__pycache__/appdirs.cpython-312.pyc |
�
/�g� � � � d Z ddlZddlZddlmZ ddlmZ dedefd�Z ddede
defd �Zddede
defd
�Zdedee fd�Z
y)
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 �0 � t j | d�� S )NF)� appauthor)�_appdirs�user_cache_dir)r s �=/usr/lib/python3/dist-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 "