PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/hc_python/lib/python3.12/site-packages/platformdirs/__pycache__/
Upload File :
Current File : //opt/hc_python/lib/python3.12/site-packages/platformdirs/__pycache__/macos.cpython-312.pyc

�

���g
��h�dZddlmZddlZddlZddlmZddlm	Z	erddl
mZGd�d	e	�Zd	gZ
y)
zmacOS.�)�annotationsN)�
TYPE_CHECKING�)�PlatformDirsABC)�Pathc�T�eZdZdZedd��Zedd��Zedd��Zedd��Zedd��Z	edd��Z
edd��Zedd	��Zedd
��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�^�|jtjjd��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 �A/opt/hc_python/lib/python3.12/site-packages/platformdirs/macos.py�
user_data_dirzMacOS.user_data_dirs%���0�0����1C�1C�Dc�1d�e�e�c��tjjd�}|r|jd�gng}|j	|jd��|j
rtjj|�S|dS)aB
        :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. ``/opt/homebrew/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.
          ``/opt/homebrew/share/$appname/$version:/Library/Application Support/$appname/$version``
        �
/opt/homebrewz/opt/homebrew/sharez/Library/Application Supportr�	�sys�prefix�
startswithr�append�	multipathr
�pathsep�join�r�is_homebrew�	path_lists   r�
site_data_dirzMacOS.site_data_dir so���j�j�+�+�O�<��R]�T�6�6�7L�M�N�ce�	�����:�:�;Y�Z�[��>�>��:�:�?�?�9�-�-���|�rc�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"rs r�site_data_pathzMacOS.site_data_path1s���4�4�T�5G�5G�H�Hrc��|jS)zC:return: config directory tied to the user, same as `user_data_dir`�rrs r�user_config_dirzMacOS.user_config_dir6����!�!�!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�^�|jtjjd��S)zV:return: cache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``z~/Library/Cachesrrs r�user_cache_dirzMacOS.user_cache_dir@s%���0�0����1C�1C�DV�1W�X�Xrc��tjjd�}|r|jd�gng}|j	|jd��|j
rtjj|�S|dS)a1
        :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. ``/opt/homebrew/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.
          ``/opt/homebrew/var/cache/$appname/$version:/Library/Caches/$appname/$version``
        rz/opt/homebrew/var/cachez/Library/Cachesrrrs   r�site_cache_dirzMacOS.site_cache_dirEso���j�j�+�+�O�<��Va�T�6�6�7P�Q�R�gi�	�����:�:�;L�M�N��>�>��:�:�?�?�9�-�-���|�rc�8�|j|j�S)zi:return: cache path shared by users. Only return the first item, even if ``multipath`` is set to ``True``)r$r/rs r�site_cache_pathzMacOS.site_cache_pathVs���4�4�T�5H�5H�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�^�|jtjjd��S)zR:return: log directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``z~/Library/Logsrrs r�user_log_dirzMacOS.user_log_dir`s%���0�0����1C�1C�DT�1U�V�Vrc�@�tjjd�S)zC:return: documents directory tied to the user, e.g. ``~/Documents``z~/Documents�r
rrrs r�user_documents_dirzMacOS.user_documents_dire����w�w�!�!�-�0�0rc�@�tjjd�S)zC:return: downloads directory tied to the user, e.g. ``~/Downloads``z~/Downloadsr7rs r�user_downloads_dirzMacOS.user_downloads_dirjr9rc�@�tjjd�S)zA:return: pictures directory tied to the user, e.g. ``~/Pictures``z
~/Picturesr7rs r�user_pictures_dirzMacOS.user_pictures_diros���w�w�!�!�,�/�/rc�@�tjjd�S)z=:return: videos directory tied to the user, e.g. ``~/Movies``z~/Moviesr7rs r�user_videos_dirzMacOS.user_videos_dirts���w�w�!�!�*�-�-rc�@�tjjd�S)z;:return: music directory tied to the user, e.g. ``~/Music``z~/Musicr7rs r�user_music_dirzMacOS.user_music_dirys���w�w�!�!�)�,�,rc�@�tjjd�S)z?:return: desktop directory tied to the user, e.g. ``~/Desktop``z	~/Desktopr7rs r�user_desktop_dirzMacOS.user_desktop_dir~s���w�w�!�!�+�.�.rc�^�|jtjjd��S)zg:return: runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``z~/Library/Caches/TemporaryItemsrrs r�user_runtime_dirzMacOS.user_runtime_dir�s%���0�0����1C�1C�De�1f�g�grc��|jS)zF:return: runtime directory shared by users, same as `user_runtime_dir`)rErs r�site_runtime_dirzMacOS.site_runtime_dir�s���$�$�$rN)�return�str)rHr)�__name__�
__module__�__qualname__�__doc__�propertyrr"r%r(r+r-r/r1r3r5r8r;r=r?rArCrErG�rrr	r	s{��	��f��f����� �I��I��"��"��"��"��Y��Y����� �J��J��"��"��W��W��1��1��1��1��0��0��.��.��-��-��/��/��h��h��%��%rr	)rM�
__future__r�os.pathr
r�typingr�apir�pathlibrr	�__all__rOrr�<module>rVs8���"��
� � ���|%�O�|%�@��r

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic