B
uCĈO @ s: d dl mZ d dlZddlmZ G dd deZdgZdS ) )annotationsN )PlatformDirsABCc @ s e Zd ZdZeddddZeddddZedddd Zeddd
dZedddd
Z eddddZ
eddddZeddddZeddddZ
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 | tjdS )zb:return: data directory tied to the user, e.g. ``~/Library/Application Support/$appname/$version``z~/Library/Application Support/)_append_app_name_and_versionospath
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
| dS )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 | tjdS )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
| dS )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 | tjdS )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 | tjdS )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 jdS )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 | tjdS )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