Viewing File: /opt/hc_python/lib/python3.12/site-packages/platformdirs/__pycache__/__init__.cpython-312.pyc

�

_��gW���dZddlmZddlZddlZddlmZddlmZddl	m
Z
ddl	mZerdd	l
mZdd
lmZej dk(rddlmZnej d
k(rddlmZnddlmZd2d�ZereZne�ZeZ					d3											d4d�Z					d3											d5d�Z					d3											d4d�Z					d3											d5d�Z					d6											d7d�Z					d6											d7d�Z 					d3											d4d�Z!					d6											d7d�Z"d8d�Z#d8d�Z$d8d�Z%d8d�Z&d8d�Z'd8d�Z(					d6											d7d�Z)					d6											d7d �Z*					d3											d9d!�Z+					d3											d:d"�Z,					d3											d9d#�Z-					d3											d:d$�Z.					d6											d;d%�Z/					d6											d;d&�Z0					d3											d9d'�Z1					d6											d;d(�Z2d<d)�Z3d<d*�Z4d<d+�Z5d<d,�Z6d<d-�Z7d<d.�Z8					d6											d;d/�Z9					d6											d;d0�Z:gd1�Z;y)=z�
Utilities for determining application-specific dirs.

See <https://github.com/platformdirs/platformdirs> for details and usage.

�)�annotationsN)�
TYPE_CHECKING�)�PlatformDirsABC)�__version__)�__version_tuple__)�Path)�Literal�win32)�Windows�darwin)�MacOS)�Unixc��tjd�dk(r]tjd�dk(rEtjd�stjd�rtSddlm}|��dd	lm}|StS)
N�ANDROID_DATAz/data�ANDROID_ROOTz/system�SHELL�PREFIXr)�_android_folder)�Android)�os�getenv�_Result�platformdirs.androidrr)rrs  �D/opt/hc_python/lib/python3.12/site-packages/platformdirs/__init__.py�_set_platform_dir_classrsX��	�y�y�� �G�+��	�	�.�0I�Y�0V�
�9�9�W�����8�!4��N�8���(�4��N��N�c�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: data directory tied to the user
    ��appname�	appauthor�version�roaming�
ensure_exists)�PlatformDirs�
user_data_dirrs     rr&r&5�'�������#���m�
rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param multipath: See `roaming <platformdirs.api.PlatformDirsABC.multipath>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: data directory shared by users
    �r r!r"�	multipathr$)r%�
site_data_dirr)s     rr+r+Ms'�������#���m�
rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: config directory tied to the user
    r)r%�user_config_dirrs     rr-r-e�'�������#���o�
rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param multipath: See `roaming <platformdirs.api.PlatformDirsABC.multipath>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: config directory shared by the users
    r))r%�site_config_dirr)s     rr0r0}s'�������#���o�
rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: cache directory tied to the user
    �r r!r"�opinionr$)r%�user_cache_dirr2s     rr4r4��'�������#���n�
rc�6�t|||||��jS�a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: cache directory tied to the user
    r2)r%�site_cache_dirr2s     rr8r8�r5rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: state directory tied to the user
    r)r%�user_state_dirrs     rr:r:�r5rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: log directory tied to the user
    r2)r%�user_log_dirr2s     rr<r<�s'�������#���l�
rc�*�t�jS)z.:returns: documents directory tied to the user)r%�user_documents_dir�rrr>r>�����>�,�,�,rc�*�t�jS)z.:returns: downloads directory tied to the user)r%�user_downloads_dirr?rrrBrB�r@rc�*�t�jS)z-:returns: pictures directory tied to the user)r%�user_pictures_dirr?rrrDrD�����>�+�+�+rc�*�t�jS)z+:returns: videos directory tied to the user)r%�user_videos_dirr?rrrGrG����>�)�)�)rc�*�t�jS)z*:returns: music directory tied to the user)r%�user_music_dirr?rrrJrJ	s���>�(�(�(rc�*�t�jS)z,:returns: desktop directory tied to the user)r%�user_desktop_dirr?rrrLrL����>�*�*�*rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: runtime directory tied to the user
    r2)r%�user_runtime_dirr2s     rrOrO�(�������#����
rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: runtime directory shared by users
    r2)r%�site_runtime_dirr2s     rrRrR+rPrc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: data path tied to the user
    r)r%�user_data_pathrs     rrTrTCr5rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param multipath: See `multipath <platformdirs.api.PlatformDirsABC.multipath>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: data path shared by users
    r))r%�site_data_pathr)s     rrVrV[s'�������#���n�
rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: config path tied to the user
    r)r%�user_config_pathrs     rrXrXsrPrc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param multipath: See `roaming <platformdirs.api.PlatformDirsABC.multipath>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: config path shared by the users
    r))r%�site_config_pathr)s     rrZrZ�s(�������#����
rc�6�t|||||��jSr7)r%�site_cache_pathr2s     rr\r\�r.rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: cache path tied to the user
    r2)r%�user_cache_pathr2s     rr^r^�r.rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: state path tied to the user
    r)r%�user_state_pathrs     rr`r`�r.rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: log path tied to the user
    r2)r%�
user_log_pathr2s     rrbrb�r'rc�*�t�jS)z+:returns: documents a path tied to the user)r%�user_documents_pathr?rrrdrd����>�-�-�-rc�*�t�jS)z):returns: downloads path tied to the user)r%�user_downloads_pathr?rrrgrgrerc�*�t�jS)z(:returns: pictures path tied to the user)r%�user_pictures_pathr?rrriri
r@rc�*�t�jS)z&:returns: videos path tied to the user)r%�user_videos_pathr?rrrkrkrMrc�*�t�jS)z%:returns: music path tied to the user)r%�user_music_pathr?rrrmrmrHrc�*�t�jS)z':returns: desktop path tied to the user)r%�user_desktop_pathr?rrrororErc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: runtime path tied to the user
    r2)r%�user_runtime_pathr2s     rrqrq!�(�������#����
rc�6�t|||||��jS)a�
    :param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
    :param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
    :param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
    :param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
    :param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
    :returns: runtime path shared by users
    r2)r%�site_runtime_pathr2s     rrtrt9rrr)%�AppDirsr%rr�__version_info__r8r\r0rZr+rVrRrtr4r^r-rXr&rTrLror>rdrBrgr<rbrJrmrDrirOrqr:r`rGrk)�returnztype[PlatformDirsABC])NNNFF)r �
str | Noner!�str | Literal[False] | Noner"rxr#�boolr$rzrw�str)r rxr!ryr"rxr*rzr$rzrwr{)NNNTF)r rxr!ryr"rxr3rzr$rzrwr{)rwr{)r rxr!ryr"rxr#rzr$rzrwr	)r rxr!ryr"rxr*rzr$rzrwr	)r rxr!ryr"rxr3rzr$rzrwr	)rwr	)<�__doc__�
__future__rr�sys�typingr�apirr"rrrv�pathlibr	r
�platform�platformdirs.windowsrr�platformdirs.macosr�platformdirs.unixrrr%rur&r+r-r0r4r8r:r<r>rBrDrGrJrLrOrRrTrVrXrZr\r^r`rbrdrgrirkrmrorqrt�__all__r?rr�<module>r�s����#�	�
� � � �:�����<�<�7��7��\�\�X��3�1����L�*�,�L�
���-1�����
��*�����	�
��	�
�2�-1�����
��*�����	�
��	�
�2�-1�����
��*�����	�
��	�
�2�-1�����
��*�����	�
��	�
�2�-1�����
��*�����	�
��	�
�2�-1�����
��*�����	�
��	�
�2�-1�����
��*�����	�
��	�
�2�-1�����
��*�����	�
��	�
�0-�
-�
,�
*�
)�
+��-1�����
��*�����	�
��	�
�2�-1�����
��*�����	�
��	�
�2�-1�����
��*�����	�
��
�
�2�-1�����
��*�����	�
��
�
�2�-1�����
��*�����	�
��
�
�2�-1�����
��*�����	�
��
�
�2�-1�����
��*�����	�
��
�
�2�-1�����
��*�����	�
��
�
�2�-1�����
��*�����	�
��
�
�2�-1�����
��*�����	�
��
�
�0.�
.�
-�
+�
*�
,��-1�����
��*�����	�
��
�
�2�-1�����
��*�����	�
��
�
�0&�r
Back to Directory File Manager