Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pip/_internal/utils/__pycache__/appdirs.cpython-312.pyc

�

4Μg����dZddlZddlZddlmZddlmZdedefd�Z	ddede
defd	�Zddede
defd
�Zdedeefd�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�tj|d��S)NF)�	appauthor)�_appdirs�user_cache_dir)rs �F/usr/local/lib/python3.12/site-packages/pip/_internal/utils/appdirs.pyr
r
s���"�"�7�e�<�<��roamingc��tj|d|��}tjj	|�r|Sd}|r tjj||�}tjj
|�S)NF�rr
z
~/.config/)r	�
user_data_dir�os�path�isdir�join�
expanduser)rr
r�linux_like_paths    r�_macos_user_config_dirrs^���!�!�'�U�G�L�D�	�w�w�}�}�T����#�O���'�'�,�,���@��
�7�7���o�.�.rc�p�tjdk(rt||�Stj|d|��S)N�darwinFr)�sys�platformrr	�user_config_dir)rr
s  rrr"s0��
�|�|�x��%�g�w�7�7��#�#�G�u�g�N�Nrc��tjdk(rtj|dd��gStj|dd��}tjdk(r|gS|jtj�dgzS)NrFT)r�	multipath�win32z/etc)rrr	�
site_data_dir�site_config_dir�splitr�pathsep)r�dirvals  r�site_config_dirsr%+si��
�|�|�x���&�&�w�%�4�P�Q�Q�
�
%�
%�g��$�
O�F�
�|�|�w���x���<�<��
�
�#�v�h�.�.r)T)�__doc__rr�typingr�pip._vendorrr	�strr
�boolrrr%�rr�<module>r,sz���
�
��0�=�C�=�C�=�/�C�/�$�/�#�/�O�S�O�4�O�3�O�	/�c�	/�d�3�i�	/r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists