Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pip
/
_vendor
/
platformdirs
/
__pycache__
[ HOME ]
Exec
Submit
File Name : macos.cpython-312.pyc
� p�/i� � �h � d Z ddlmZ ddlZddlZddlmZ ddlm Z erddl mZ G d� d e � Zd gZ y) zmacOS.� )�annotationsN)� TYPE_CHECKING� )�PlatformDirsABC)�Pathc �T � e Zd ZdZedd�� Zedd�� Zedd�� Zedd�� Zedd�� Z edd�� Z edd�� Zedd �� Zedd �� Z edd�� Zedd�� Zedd �� Zedd�� Zedd�� Zedd�� Zedd�� Zedd�� Zedd�� Zy)�MacOSa� Platform directories for the macOS operating system. Follows the guidance from `Apple documentation <https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html>`_. Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`, `version <platformdirs.api.PlatformDirsABC.version>`, `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`. c �^ � | j t j j d� � S )zb:return: data directory tied to the user, e.g. ``~/Library/Application Support/$appname/$version``z~/Library/Application Support��_append_app_name_and_version�os�path� expanduser��selfs �M/opt/hc_python/lib/python3.12/site-packages/pip/_vendor/platformdirs/macos.py� user_data_dirzMacOS.user_data_dir s% � � �0�0����1C�1C�Dc�1d�e�e� c �D � dt j v }|r"t j j d� d nd}|r| j |� d�� gng }|j | j d� � | j rt j j |� S |d S )aH :return: data directory shared by users, e.g. ``/Library/Application Support/$appname/$version``. If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory will be under the Homebrew prefix, e.g. ``$homebrew_prefix/share/$appname/$version``. If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew, the response is a multi-path string separated by ":", e.g. ``$homebrew_prefix/share/$appname/$version:/Library/Application Support/$appname/$version`` �/opt/pythonr � z/sharez/Library/Application Support� �sys�prefix�splitr �append� multipathr �pathsep�join�r �is_homebrew�homebrew_prefix� path_lists r � site_data_dirzMacOS.site_data_dir s� � � $�s�z�z�1��@K�#�*�*�*�*�=�9�!�<�QS��Wb�T�6�6�/�9J�&�7Q�R�S�hj� �����:�:�;Y�Z�[��>�>��:�:�?�?�9�-�-���|�r c �8 � | j | j � S )zh:return: data path shared by users. Only return the first item, even if ``multipath`` is set to ``True``)� _first_item_as_path_if_multipathr$ r s r �site_data_pathzMacOS.site_data_path2 s � � �4�4�T�5G�5G�H�Hr c � � | j S )zC:return: config directory tied to the user, same as `user_data_dir`�r r s r �user_config_dirzMacOS.user_config_dir7 � � � �!�!�!r c � � | j S )zF:return: config directory shared by the users, same as `site_data_dir`)r$ r s r �site_config_dirzMacOS.site_config_dir<