B
ĤÈa_
ã @ s: d dl mZ d dlZddlmZ G dd„ deƒZdgZdS )é )ÚannotationsNé )ÚPlatformDirsABCc @ s² e Zd ZdZeddœdd„ƒZeddœdd„ƒZeddœdd „ƒZeddœd
d„ƒZeddœdd
„ƒZ eddœdd„ƒZ
eddœdd„ƒZeddœdd„ƒZeddœdd„ƒZ
dS )ÚMacOSa–
Platform directories for the macOS operating system. Follows the guidance from `Apple documentation
`_.
Makes use of the `appname ` and
`version `.
Ústr)Úreturnc C s | 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)Úself© r
úC/opt/alt/python37/lib/python3.7/site-packages/platformdirs/macos.pyÚ
user_data_dir s zMacOS.user_data_dirc C s
| d¡S )z`:return: data directory shared by users, e.g. ``/Library/Application Support/$appname/$version``z/Library/Application Support)r )r r
r
r Ú
site_data_dir s zMacOS.site_data_dirc C s | tj d¡¡S )z\:return: config directory tied to the user, e.g. ``~/Library/Preferences/$appname/$version``z~/Library/Preferences/)r r r
r )r r
r
r Úuser_config_dir s zMacOS.user_config_dirc C s
| d¡S )zU:return: config directory shared by the users, e.g. ``/Library/Preferences/$appname``z/Library/Preferences)r )r r
r
r Úsite_config_dir s zMacOS.site_config_dirc C s | tj d¡¡S )zV:return: cache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``z~/Library/Caches)r r r
r )r r
r
r Úuser_cache_dir$ s zMacOS.user_cache_dirc C s | j S )zB:return: state directory tied to the user, same as `user_data_dir`)r )r r
r
r Úuser_state_dir) s zMacOS.user_state_dirc C s | tj d¡¡S )zR:return: log directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``z~/Library/Logs)r r r
r )r r
r
r Úuser_log_dir. s zMacOS.user_log_dirc C s t j d¡S )zC:return: documents directory tied to the user, e.g. ``~/Documents``z~/Documents)r r
r )r r
r
r Úuser_documents_dir3 s zMacOS.user_documents_dirc C s | tj d¡¡S )zg:return: runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``z~/Library/Caches/TemporaryItems)r r r
r )r r
r
r Úuser_runtime_dir8 s zMacOS.user_runtime_dirN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr r r r r r r r r r
r
r
r r s r )Ú
__future__r r Zapir r Ú__all__r
r
r
r Ú s 7