HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pip/_internal/utils/__pycache__/appdirs.cpython-310.pyc
o

@%Ne��@s�dZddlZddlZddlmZddlmZdedefdd�Z	dded
e
defdd�Zdded
e
defd
d�Zdedeefdd�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�returncCstj|dd�S)NF)�	appauthor)�_appdirs�user_cache_dir)r�r	�=/usr/lib/python3/dist-packages/pip/_internal/utils/appdirs.pyrsrT�roamingcCsBtj|d|d�}tj�|�r|Sd}|rtj�||�}tj�|�S)NF�rrz
~/.config/)r�
user_data_dir�os�path�isdir�join�
expanduser)rrr�linux_like_pathr	r	r
�_macos_user_config_dirsrcCs$tjdkr
t||�Stj|d|d�S)N�darwinFr)�sys�platformrr�user_config_dir)rrr	r	r
r"s

rcCsNtjdkrtj|ddd�gStj|ddd�}tjdkr|gS|�tj�dgS)NrFT)r�	multipath�win32z/etc)rrr�
site_data_dir�site_config_dir�splitr�pathsep)r�dirvalr	r	r
�site_config_dirs+s

r )T)�__doc__rr�typingr�pip._vendorrr�strr�boolrrr r	r	r	r
�<module>s