📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-27 10:20:20
📂
/
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pip
/
_internal
/
utils
/
__pycache__
✏️
Editing: appdirs.cpython-312.pyc
� Jr*j� � �v � d Z ddlZddlZddlmZ dedefd�Zddededefd�Z ddededefd �Z dedee fd �Zy)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)�platformdirs�appname�returnc �0 � t j | d�� S )NF)� appauthor)�_appdirs�user_cache_dir)r s �J/opt/hc_python/lib/python3.12/site-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 ! s0 � � �|�|�x��%�g�w�7�7��#�#�G�u�g�N�Nr c �8 � t j dk( r7t j | dd�� }|j t j � S t j | dd�� }t j dk( r|gS |j t j � dgz S )Nr FT)r � multipath�win32z/etc)r r r � site_data_dir�splitr �pathsep�site_config_dir)r �dirvals r �site_config_dirsr$ * sx � � �|�|�x���'�'��5�D�Q���|�|�B�J�J�'�'� � %� %�g��$� O�F� �|�|�w���x�� �<�<�� � �#�v�h�.�.r )T) �__doc__r r �pip._vendorr r �strr �boolr r �listr$ � r r �<module>r+ sw ��� � � 0�=�C� =�C� =�/�C� /�$� /�#� /�O�S� O�4� O�3� O� /�c� /�d�3�i� /r
💾 Save Changes
❌ Cancel