관리-도구
편집 파일: macos.cpython-37.pyc
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 <https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html>`_. Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>` and `version <platformdirs.api.PlatformDirsABC.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 �<module> s 7