HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/platformdirs/__pycache__/__init__.cpython-310.pyc
o

j�hW�@sdZddlmZddlZddlZddlmZddlmZddl	m
Z
ddl	mZer6dd	l
mZdd
lmZejdkrBddlmZnejd
krNddlmZnddlmZdcdd�Zer^eZne�ZeZ					dddedd�Z					dddfd!d"�Z					ddded#d$�Z					dddfd%d&�Z				'	dgdhd)d*�Z				'	dgdhd+d,�Z 					ddded-d.�Z!				'	dgdhd/d0�Z"did1d2�Z#did3d4�Z$did5d6�Z%did7d8�Z&did9d:�Z'did;d<�Z(				'	dgdhd=d>�Z)				'	dgdhd?d@�Z*					dddjdBdC�Z+					dddkdDdE�Z,					dddjdFdG�Z-					dddkdHdI�Z.				'	dgdldJdK�Z/				'	dgdldLdM�Z0					dddjdNdO�Z1				'	dgdldPdQ�Z2dmdRdS�Z3dmdTdU�Z4dmdVdW�Z5dmdXdY�Z6dmdZd[�Z7dmd\d]�Z8				'	dgdld^d_�Z9				'	dgdld`da�Z:gdb�Z;dS)nz�
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)�Unix�return�type[PlatformDirsABC]cCs^t�d�dkr-t�d�dkr-t�d�st�d�rtSddlm}|�dur-dd	lm}|StS)
N�ANDROID_DATAz/data�ANDROID_ROOTz/system�SHELL�PREFIXr)�_android_folder)�Android)�os�getenv�_Result�platformdirs.androidrr)rr�r�@/usr/local/lib/python3.10/dist-packages/platformdirs/__init__.py�_set_platform_dir_classs
rF�appname�
str | None�	appauthor�str | Literal[False] | None�version�roaming�bool�
ensure_exists�strcC�t|||||d�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
    �rr r"r#r%)�PlatformDirs�
user_data_dirr(rrrr*5���r*�	multipathcCr')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
    �rr r"r,r%)r)�
site_data_dirr-rrrr.Mr+r.cCr')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_dirr(rrrr/er+r/cCr')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-rrrr0}r+r0T�opinioncCr')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
    �rr r"r1r%)r)�user_cache_dirr2rrrr3�r+r3cCr'�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_dirr2rrrr5�r+r5cCr')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_dirr(rrrr6�r+r6cCr')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_dirr2rrrr7�r+r7cC�t�jS)z.:returns: documents directory tied to the user)r)�user_documents_dirrrrrr9��r9cCr8)z.:returns: downloads directory tied to the user)r)�user_downloads_dirrrrrr;�r:r;cCr8)z-:returns: pictures directory tied to the user)r)�user_pictures_dirrrrrr<�r:r<cCr8)z+:returns: videos directory tied to the user)r)�user_videos_dirrrrrr=r:r=cCr8)z*:returns: music directory tied to the user)r)�user_music_dirrrrrr>	r:r>cCr8)z,:returns: desktop directory tied to the user)r)�user_desktop_dirrrrrr?r:r?cCr')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_dirr2rrrr@r+r@cCr')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_dirr2rrrrA+r+rArcCr')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_pathr(rrrrBCr+rBcCr')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-rrrrC[r+rCcCr')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_pathr(rrrrDsr+rDcCr')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-rrrrE�r+rEcCr'r4)r)�site_cache_pathr2rrrrF�r+rFcCr')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_pathr2rrrrG�r+rGcCr')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_pathr(rrrrH�r+rHcCr')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_pathr2rrrrI�r+rIcCr8)z+:returns: documents a path tied to the user)r)�user_documents_pathrrrrrJr:rJcCr8)z):returns: downloads path tied to the user)r)�user_downloads_pathrrrrrKr:rKcCr8)z(:returns: pictures path tied to the user)r)�user_pictures_pathrrrrrL
r:rLcCr8)z&:returns: videos path tied to the user)r)�user_videos_pathrrrrrMr:rMcCr8)z%:returns: music path tied to the user)r)�user_music_pathrrrrrNr:rNcCr8)z':returns: desktop path tied to the user)r)�user_desktop_pathrrrrrOr:rOcCr')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_pathr2rrrrP!r+rPcCr')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_pathr2rrrrQ9r+rQ)%�AppDirsr)rr�__version_info__r5rFr0rEr.rCrArQr3rGr/rDr*rBr?rOr9rJr;rKr7rIr>rNr<rLr@rPr6rHr=rM)rr)NNNFF)rrr r!r"rr#r$r%r$rr&)rrr r!r"rr,r$r%r$rr&)NNNTF)rrr r!r"rr1r$r%r$rr&)rr&)rrr r!r"rr#r$r%r$rr)rrr r!r"rr,r$r%r$rr)rrr r!r"rr1r$r%r$rr)rr)<�__doc__�
__future__rr�sys�typingr�apirr"rrrS�pathlibrr	�platform�platformdirs.windowsrr�platformdirs.macosr
�platformdirs.unixrrr)rRr*r.r/r0r3r5r6r7r9r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKrLrMrNrOrPrQ�__all__rrrr�<module>s4


��������





����������





��