File manager - Edit - /usr/local/lib/python3.10/dist-packages/platformdirs/__pycache__/unix.cpython-310.pyc
Back
o }h�( � @ s� d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z mZ ddlm Z e r2dd lmZ ejd kr=dd d�ZnddlmZ G dd� de �Zddd�Zddd�ZdgZdS )zUnix.� )�annotationsN)�ConfigParser)�Path)� TYPE_CHECKING�NoReturn� )�PlatformDirsABC)�Iterator�win32�returnr c C s d} t | ��)Nzshould only be used on Unix)�RuntimeError)�msg� r �</usr/local/lib/python3.10/dist-packages/platformdirs/unix.py�getuid s r )r c @ sJ e Zd ZdZed6dd��Zed7dd��Zed6d d ��Zed6dd��Zed7d d��Z ed6dd��Z ed6dd��Zed6dd��Zed6dd��Z ed6dd��Zed6dd��Zed6dd��Zed6dd��Zed6dd ��Zed6d!d"��Zed6d#d$��Zed6d%d&��Zed6d'd(��Zed8d*d+��Zed8d,d-��Zed8d.d/��Zd9d1d2�Zd9d3d4�Zd5S ):�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>`. r �strc C �, 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 r r r � user_data_dir'