File: //usr/local/lib/python3.10/dist-packages/platformdirs/__pycache__/__init__.cpython-310.pyc
o
j�hW � @ s d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m
Z
ddl mZ er6dd l
mZ dd
lmZ ejdkrBddlmZ nejd
krNddlmZ nddlmZ dcdd�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:g db�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]c C s^ t �d�dkr-t �d�dkr-t �d�st �d�rtS ddlm} | � d ur-dd lm} |S tS )
N�ANDROID_DATAz/data�ANDROID_ROOTz/system�SHELL�PREFIXr )�_android_folder)�Android)�os�getenv�_Result�platformdirs.androidr r )r r � r �@/usr/local/lib/python3.10/dist-packages/platformdirs/__init__.py�_set_platform_dir_class s
r F�appname�
str | None� appauthor�str | Literal[False] | None�version�roaming�bool�
ensure_exists�strc C � 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
�r r r"