§
·_²ÞÁºZðã óT — d Z ddlmZ ddlZddlZddlmZ G d„ de¦ « ZdgZ dS )zmacOS.é )ÚannotationsNé )ÚPlatformDirsABCc ó’ — e Zd ZdZedd„¦ « Zedd„¦ « Zedd„¦ « Zedd„¦ « Zedd„¦ « Z edd „¦ « Z
edd
„¦ « Zedd„¦ « Zedd„¦ « Z
edd
„¦ « Zedd„¦ « Zedd„¦ « Zedd„¦ « Zedd„¦ « Zedd„¦ « Zedd„¦ « ZdS )ÚMacOSaÙ
Platform directories for the macOS operating system. Follows the guidance from `Apple documentation
`_.
Makes use of the `appname `,
`version `,
`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 úd/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/platformdirs/macos.pyÚ
user_data_dirzMacOS.user_data_dir s) € ð ×0Ò0µ´×1CÒ1CÐDcÑ1dÔ1dÑeÔeÐeó c ó — t j d¦ « }|r| d¦ « gng }| | d¦ « ¦ « | j rt j |¦ « S |d S )aA
:return: data directory shared by users, e.g. ``/Library/Application Support/$appname/$version``.
If we're using a Python binary managed by `Homebrew `_, the directory
will be under the Homebrew prefix, e.g. ``/opt/homebrew/share/$appname/$version``.
If `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 s† € õ ”j×+Ò+¨OÑ<Ô<ˆØR]ÐeT×6Ò6Ð7LÑMÔMÐNÐNÐceˆ Ø×Ò˜×:Ò:Ð;YÑZÔZÑ[Ô[Ð[ØŒ>ð .Ý”:—?’? 9Ñ-Ô-Ð-ؘŒ|Ðr 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_dir) ó
€ ð Ô!Ð!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. r&