HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //lib/python3.9/site-packages/pip/_internal/utils/__pycache__/appdirs.cpython-39.pyc
a

[��f��@s|dZddlZddlZddlmZddlmZeed�dd�Z	dee
ed	�d
d�Zdee
ed	�dd
�Zeeed�dd�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.9/site-packages/pip/_internal/utils/appdirs.pyrsrT)r�roamingrcCsBtj|d|d�}tj�|�r |Sd}|r6tj�||�}tj�|�S)NF�rrz
~/.config/)rZ
user_data_dir�os�path�isdir�join�
expanduser)rrrZlinux_like_pathr	r	r
�_macos_user_config_dirsrcCs$tjdkrt||�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)rZ	multipath�win32z/etc)rrrZ
site_data_dirZsite_config_dir�splitr
�pathsep)rZdirvalr	r	r
�site_config_dirs+s

r)T)T)�__doc__r
r�typingrZpip._vendorrr�strr�boolrrrr	r	r	r
�<module>s