| Server IP : 162.19.112.25 / Your IP : 216.73.216.88 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib64/python3.11/site-packages/platformdirs/__pycache__/ |
Upload File : |
�
��+J��,� � � d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m
Z
ej dk rdd�ZnddlmZ G d
� de
� � Z
dd�Zdd�ZdgZdS )zUnix.� )�annotationsN)�ConfigParser)�Path� )�PlatformDirsABC�win32�return�intc �$ � d} t | � � �)Nzshould only be used on Unix)�RuntimeError)�msgs �c/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib/python3.11/site-packages/platformdirs/unix.py�getuidr
s � �+���3���� )r c �� � e Zd ZdZedd�� � Zedd�� � Zdd�Zedd�� � Zedd �� � Z edd
�� � Z
edd�� � Zedd�� � Zedd
�� � Z
edd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zedd�� � Zd d�ZdS )!�Unixa�
On Unix/Linux, we follow the
`XDG Basedir Spec <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_. The spec allows
overriding directories with environment variables. The examples show are the default values, alongside the name of
the environment variable that overrides them. Makes use of the
`appname <platformdirs.api.PlatformDirsABC.appname>`,
`version <platformdirs.api.PlatformDirsABC.version>`,
`multipath <platformdirs.api.PlatformDirsABC.multipath>`,
`opinion <platformdirs.api.PlatformDirsABC.opinion>`,
`ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
r �strc �� � t j � dd� � }|� � � st j � d� � }| � |� � S )z�
:return: data directory tied to the user, e.g. ``~/.local/share/$appname/$version`` or
``$XDG_DATA_HOME/$appname/$version``
�
XDG_DATA_HOME� z~/.local/share��os�environ�get�strip�path�
expanduser�_append_app_name_and_version��selfr s r �
user_data_dirzUnix.user_data_dir"