File manager - Edit - /opt/cloudlinux/venv/lib/python3.11/site-packages/pip/_vendor/platformdirs/__pycache__/macos.cpython-311.pyc
Back
� .|oi� � �p � d Z ddlmZ ddlZddlZddlmZ ddlm Z erddl mZ G d� d e � � Zd gZ dS ) zmacOS.� )�annotationsN)� TYPE_CHECKING� )�PlatformDirsABC)�Pathc �� � e Zd ZdZedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd �� � Z edd �� � Z edd�� � Zedd�� � Zedd �� � Z edd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � ZdS )�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>`. �return�strc �f � | � t 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 �p/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_vendor/platformdirs/macos.py� user_data_dirzMacOS.user_data_dir s) � � �0�0���1C�1C�Dc�1d�1d�e�e�e� c �V � dt j v }|r%t j � d� � d nd}|r| � |� d�� � gng }|� | � d� � � � | j rt 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�1��@K�S�#�*�*�*�=�9�9�!�<�<�QS��Wb�j�T�6�6�/�7Q�7Q�7Q�R�R�S�S�hj� �����:�:�;Y�Z�Z�[�[�[��>� .��:�?�?�9�-�-�-���|�r r c �6 � | � | 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&