Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/platformdirs/__pycache__/unix.cpython-39.pyc
Ðазад
a e�h�( � @ s� d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z mZ ddlm Z e rddd lmZ ejd kr~dd�d d�ZnddlmZ G dd� de �Zdddd�dd�Zddd�dd�ZdgZdS )zUnix.� )�annotationsN)�ConfigParser)�Path)� TYPE_CHECKING�NoReturn� )�PlatformDirsABC)�Iterator�win32r ��returnc C s d} t | ��d S )Nzshould only be used on Unix)�RuntimeError)�msg� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/platformdirs/unix.py�getuid s r )r c @ s� e Zd ZdZedd�dd��Zedd�dd��Zedd�d d ��Zedd�dd��Zedd�d d��Z edd�dd��Z edd�dd��Zedd�dd��Zedd�dd��Z edd�dd��Zedd�dd��Zedd�dd��Zedd�dd��Zedd�dd ��Zedd�d!d"��Zedd�d#d$��Zedd�d%d&��Zedd�d'd(��Zed)d�d*d+��Zed)d�d,d-��Zed)d�d.d/��Zd0d�d1d2�Zd0d�d3d4�Zd5S )6�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 shown 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>`. �strr c C s, t j�dd�}|�� s"t 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 r r r � user_data_dir'