/opt/cloudlinux/venv/lib/python3.11/site-packages/platformdirs/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/platformdirs/__pycache__/unix.cpython-311.pyc (15369B)
§
„÷+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.12/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
`_. 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 `,
`version `,
`multipath `,
`opinion `,
`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 c ó´ — t j dd¦ « }| ¦ « sdt j › d�}| |¦ « S )aY
:return: data directories shared by users (if `multipath ` is
enabled and ``XDG_DATA_DIR`` is set and a multi path the response is also a multi path separated by the OS
path separator), e.g. ``/usr/local/share/$appname/$version`` or ``/usr/share/$appname/$version``
Ú
XDG_DATA_DIRSr z/usr/local/sharez
/usr/share)r r r r ÚpathsepÚ_with_multi_pathr s r Ú
site_data_dirzUnix.site_data_dir- sO € õ Œz�~Š~˜o¨rÑ2Ô2ˆØ�zŠz‰|Œ|ð =Ø<¥b¤jÐ<Ð<Ð<ˆDØ×$Ò$ TÑ*Ô*Ð*r r c ó¾ ‡ — | t j ¦ « }‰ j s
|dd… }ˆ fd„|D ¦ « }t j |¦ « S )Nr r c ót •— g | ]4}‰ t j |¦ « ¦ « ‘Œ5S © )r r r r )Ú.0Úpr s €r ú
z)Unix._with_multi_path..> s8 ø€ ÐaÐaÐaÐRS�T×6Ò6µr´w×7IÒ7IÈ!Ñ7LÔ7LÑMÔMÐaÐaÐar )Úsplitr r$ Ú multipathÚjoin)r r Ú path_lists ` r r% zUnix._with_multi_path: s[ ø€ Ø—J’J�rœzÑ*Ô*ˆ ØŒ~ð 'Ø! ! A #œˆIØaÐaÐaÐaÐW`ÐaÑaÔaˆ ÝŒz�Š˜yÑ)Ô)Ð)r c óÒ — t j dd¦ « }| ¦ « st j d¦ « }| |¦ « S )z•
:return: config directory tied to the user, e.g. ``~/.config/$appname/$version`` or
``$XDG_CONFIG_HOME/$appname/$version``
ÚXDG_CONFIG_HOMEr z ~/.configr r s r Úuser_config_dirzUnix.user_config_dirA sS € õ Œz�~Š~Ð/°Ñ4Ô4ˆØ�zŠz‰|Œ|ð 3Ý”7×%Ò% kÑ2Ô2ˆDØ×0Ò0°Ñ6Ô6Ð6r c ó˜ — t j dd¦ « }| ¦ « sd}| |¦ « S )a/
:return: config directories shared by users (if `multipath `
is enabled and ``XDG_DATA_DIR`` is set and a multi path the response is also a multi path separated by the OS
path separator), e.g. ``/etc/xdg/$appname/$version``
ÚXDG_CONFIG_DIRSr z/etc/xdg)r r r r r% r s r Úsite_config_dirzUnix.site_config_dirL sC € õ Œz�~Š~Ð/°Ñ4Ô4ˆØ�zŠz‰|Œ|ð ØˆDØ×$Ò$ TÑ*Ô*Ð*r c óÒ — t j dd¦ « }| ¦ « st j d¦ « }| |¦ « S )z”
:return: cache directory tied to the user, e.g. ``~/.cache/$appname/$version`` or
``~/$XDG_CACHE_HOME/$appname/$version``
ÚXDG_CACHE_HOMEr z~/.cacher r s r Úuser_cache_dirzUnix.user_cache_dirY sS € õ Œz�~Š~Ð.°Ñ3Ô3ˆØ�zŠz‰|Œ|ð 2Ý”7×%Ò% jÑ1Ô1ˆDØ×0Ò0°Ñ6Ô6Ð6r c ó, — | d¦ « S )zM:return: cache directory shared by users, e.g. ``/var/tmp/$appname/$version``z/var/tmp)r ©r s r Úsite_cache_dirzUnix.site_cache_dird s € ð ×0Ò0°Ñ<Ô<Ð