관리-도구
편집 파일: unix.cpython-311.pyc
� �Dg�) � � � d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z mZ ddlm Z ej d k rdd�Zndd lmZ G d� de � � Zdd�Zdd�ZdgZdS )zUnix.� )�annotationsN)�ConfigParser)�Path)�Iterator�NoReturn� )�PlatformDirsABC�win32�returnr c �$ � d} t | � � �)Nzshould only be used on Unix)�RuntimeError)�msgs �}/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/platformdirs/unix.py�getuidr s � �+���3���� )r c �" � e Zd ZdZed!d�� � Zed"d�� � Zed!d�� � Zed!d�� � Zed"d �� � Z ed!d �� � Z ed!d�� � Zed!d�� � Zed!d �� � Z ed!d�� � Zed!d�� � Zed!d�� � Zed!d�� � Zed!d�� � Zed!d�� � Zed!d�� � Zed!d�� � Zed!d�� � Zed#d�� � Zed#d�� � Zed#d�� � Zd$d�Zd%d�Zd%d�Zd S )&�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 �� � 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$ sS � � �z�~�~�o�r�2�2���z�z�|�|� 8��7�%�%�&6�7�7�D��0�0��6�6�6r � list[str]c �� � � t j � dd� � }|� � � sdt j � d�}� fd�|� t j � � D � � S )N� XDG_DATA_DIRSr z/usr/local/sharez /usr/sharec �: �� g | ]}�� |� � ��S � �r ��.0�pr! s �r � <listcomp>z(Unix._site_data_dirs.<locals>.<listcomp>4 �'