HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/pip/_vendor/platformdirs/__pycache__/macos.cpython-311.pyc
�

�mi���p�dZddlmZddlZddlZddlmZddlm	Z	erddl
mZGd�d	e	��Zd	gZ
dS)
zmacOS.�)�annotationsN)�
TYPE_CHECKING�)�PlatformDirsABC)�Pathc���eZdZdZedd���Zedd���Zedd���Zedd���Zedd	���Z	edd
���Z
edd���Zedd���Zedd
���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�|�tj�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 �@D:\Python311\Lib\site-packages\pip/_vendor/platformdirs/macos.py�
user_data_dirzMacOS.user_data_dirs)���0�0���1C�1C�Dc�1d�1d�e�e�e�c�V�dtjv}|r%tj�d��dnd}|r|�|�d���gng}|�|�d����|jrtj�|��S|dS)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�-�-�-���|�rrc�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&rs r�site_data_pathzMacOS.site_data_path2s���4�4�T�5G�H�H�Hrc��|jS)zC:return: config directory tied to the user, same as `user_data_dir`�rrs r�user_config_dirzMacOS.user_config_dir7�
���!�!rc��|jS)zF:return: config directory shared by the users, same as `site_data_dir`)r&rs r�site_config_dirzMacOS.site_config_dir<r-rc�f�|�tj�d����S)zV:return: cache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``z~/Library/Cachesr
rs r�user_cache_dirzMacOS.user_cache_dirAs)���0�0���1C�1C�DV�1W�1W�X�X�Xrc�V�dtjv}|r%tj�d��dnd}|r|�|�d���gng}|�|�d����|jrtj�|��S|dS)a7
        :return: cache directory shared by users, e.g. ``/Library/Caches/$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/var/cache/$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/var/cache/$appname/$version:/Library/Caches/$appname/$version``
        rrrz
/var/cachez/Library/Cachesrr"s    r�site_cache_dirzMacOS.site_cache_dirFs���$�s�z�1��@K�S�#�*�*�*�=�9�9�!�<�<�QS��[f�n�T�6�6�/�7U�7U�7U�V�V�W�W�ln�	�����:�:�;L�M�M�N�N�N��>�	.��:�?�?�9�-�-�-���|�rc�6�|�|j��S)zi:return: cache path shared by users. Only return the first item, even if ``multipath`` is set to ``True``)r(r3rs r�site_cache_pathzMacOS.site_cache_pathXs���4�4�T�5H�I�I�Irc��|jS)zB:return: state directory tied to the user, same as `user_data_dir`r+rs r�user_state_dirzMacOS.user_state_dir]r-rc�f�|�tj�d����S)zR:return: log directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``z~/Library/Logsr
rs r�user_log_dirzMacOS.user_log_dirbs)���0�0���1C�1C�DT�1U�1U�V�V�Vrc�@�tj�d��S)zC:return: documents directory tied to the user, e.g. ``~/Documents``z~/Documents�rrrrs r�user_documents_dirzMacOS.user_documents_dirg����w�!�!�-�0�0�0rc�@�tj�d��S)zC:return: downloads directory tied to the user, e.g. ``~/Downloads``z~/Downloadsr;rs r�user_downloads_dirzMacOS.user_downloads_dirlr=rc�@�tj�d��S)zA:return: pictures directory tied to the user, e.g. ``~/Pictures``z
~/Picturesr;rs r�user_pictures_dirzMacOS.user_pictures_dirqs���w�!�!�,�/�/�/rc�@�tj�d��S)z=:return: videos directory tied to the user, e.g. ``~/Movies``z~/Moviesr;rs r�user_videos_dirzMacOS.user_videos_dirvs���w�!�!�*�-�-�-rc�@�tj�d��S)z;:return: music directory tied to the user, e.g. ``~/Music``z~/Musicr;rs r�user_music_dirzMacOS.user_music_dir{s���w�!�!�)�,�,�,rc�@�tj�d��S)z?:return: desktop directory tied to the user, e.g. ``~/Desktop``z	~/Desktopr;rs r�user_desktop_dirzMacOS.user_desktop_dir�s���w�!�!�+�.�.�.rc�f�|�tj�d����S)zg:return: runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``z~/Library/Caches/TemporaryItemsr
rs r�user_runtime_dirzMacOS.user_runtime_dir�s)���0�0���1C�1C�De�1f�1f�g�g�grc��|jS)zF:return: runtime directory shared by users, same as `user_runtime_dir`)rIrs r�site_runtime_dirzMacOS.site_runtime_dir�s
���$�$rN)r
r)r
r)�__name__�
__module__�__qualname__�__doc__�propertyrr&r)r,r/r1r3r5r7r9r<r?rArCrErGrIrK�rrr	r	sv������	�	��f�f�f��X�f������X��"�I�I�I��X�I��"�"�"��X�"��"�"�"��X�"��Y�Y�Y��X�Y������X��"�J�J�J��X�J��"�"�"��X�"��W�W�W��X�W��1�1�1��X�1��1�1�1��X�1��0�0�0��X�0��.�.�.��X�.��-�-�-��X�-��/�/�/��X�/��h�h�h��X�h��%�%�%��X�%�%�%rr	)rO�
__future__r�os.pathrr�typingr�apir�pathlibrr	�__all__rQrr�<module>rXs�����"�"�"�"�"�"�����
�
�
�
� � � � � � � � � � � � ���������~%�~%�~%�~%�~%�O�~%�~%�~%�D����r