CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
macos.cpython-310.pyc39 linesDownload Raw Back to __pycache__
1o

2��Yi��@sbdZddlmZddlZddlZddlmZddlm	Z	er$ddl3mZGdd	�d	e	�Zd	gZ
dS)4zmacOS.�)�annotationsN)�
TYPE_CHECKING�)�PlatformDirsABC)�Pathc@seZdZdZed*dd��Zed*dd��Zed+d	d5��Zed*dd��Zed*d
d��Z	ed*dd��Z6ed*dd��Zed+dd��Zed*dd��Z
ed*dd��Zed*dd��Zed*dd��Zed*dd��Zed*dd ��Zed*d!d"��Zed*d#d$��Zed*d%d&��Zed*d'd(��Zd)S),�MacOSa�7    Platform directories for the macOS operating system.8 9    Follows the guidance from10    `Apple documentation <https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html>`_.11    Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`,12    `version <platformdirs.api.PlatformDirsABC.version>`,13    `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.14 15    �return�strcC�|�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�16expanduser��self�r�|E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\platformdirs/macos.py�
user_data_dir�zMacOS.user_data_dircC�fdtjv}|rtj�d�dnd}|r|�|�d��gng}|�|�d��|jr/tj�|�S|dS)aH17        :return: data directory shared by users, e.g. ``/Library/Application Support/$appname/$version``.18          If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory19          will be under the Homebrew prefix, e.g. ``$homebrew_prefix/share/$appname/$version``.20          If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew,21          the response is a multi-path string separated by ":", e.g.22          ``$homebrew_prefix/share/$appname/$version:/Library/Application Support/$appname/$version``23        �/opt/pythonr�z/sharez/Library/Application Support�	�sys�prefix�splitr�append�	multipathr
�pathsep�join�rZis_homebrewZhomebrew_prefix�	path_listrrr�
site_data_dir �24 25zMacOS.site_data_dirrcC�|�|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#rrrr�site_data_path2�zMacOS.site_data_pathcC�|jS)zC:return: config directory tied to the user, same as `user_data_dir`�rrrrr�user_config_dir7�zMacOS.user_config_dircCr))zF:return: config directory shared by the users, same as `site_data_dir`)r#rrrr�site_config_dir<r,zMacOS.site_config_dircCr26)zV:return: cache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``z~/Library/Cachesrrrrr�user_cache_dirArzMacOS.user_cache_dircCr)a727        :return: cache directory shared by users, e.g. ``/Library/Caches/$appname/$version``.28          If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory29          will be under the Homebrew prefix, e.g. ``$homebrew_prefix/var/cache/$appname/$version``.30          If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew,31          the response is a multi-path string separated by ":", e.g.32          ``$homebrew_prefix/var/cache/$appname/$version:/Library/Caches/$appname/$version``33        rrrz34/var/cachez/Library/Cachesrr!rrr�site_cache_dirFr$zMacOS.site_cache_dircCr%)zi:return: cache path shared by users. Only return the first item, even if ``multipath`` is set to ``True``)r&r/rrrr�site_cache_pathXr(zMacOS.site_cache_pathcCr))zB:return: state directory tied to the user, same as `user_data_dir`r*rrrr�user_state_dir]r,zMacOS.user_state_dircCr35)zR:return: log directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``z~/Library/Logsrrrrr�user_log_dirbrzMacOS.user_log_dircC�tj�d�S)zC:return: documents directory tied to the user, e.g. ``~/Documents``z~/Documents�r
rrrrrr�user_documents_dirgr(zMacOS.user_documents_dircCr3)zC:return: downloads directory tied to the user, e.g. ``~/Downloads``z~/Downloadsr4rrrr�user_downloads_dirlr(zMacOS.user_downloads_dircCr3)zA:return: pictures directory tied to the user, e.g. ``~/Pictures``z36~/Picturesr4rrrr�user_pictures_dirqr(zMacOS.user_pictures_dircCr3)z=:return: videos directory tied to the user, e.g. ``~/Movies``z~/Moviesr4rrrr�user_videos_dirvr(zMacOS.user_videos_dircCr3)z;:return: music directory tied to the user, e.g. ``~/Music``z~/Musicr4rrrr�user_music_dir{r(zMacOS.user_music_dircCr3)z?:return: desktop directory tied to the user, e.g. ``~/Desktop``z	~/Desktopr4rrrr�user_desktop_dir�r(zMacOS.user_desktop_dircCr37)zg:return: runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``z~/Library/Caches/TemporaryItemsrrrrr�user_runtime_dir�rzMacOS.user_runtime_dircCr))zF:return: runtime directory shared by users, same as `user_runtime_dir`)r;rrrr�site_runtime_dir�r,zMacOS.site_runtime_dirN)rr	)rr)�__name__�38__module__�__qualname__�__doc__�propertyrr#r'r+r-r.r/r0r1r2r5r6r7r8r9r:r;r<rrrrrsLr)r@�39__future__rZos.pathr
r�typingr�apir�pathlibrr�__all__rrrr�<module>s�