HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/keyring/util/__pycache__/platform_.cpython-310.pyc
o

���a��@s|ddlZddlZddlZdd�Zdd�Zdd�Zdd	�ZeZd
d�Zdd
�Z	e
��de��e�Z
e
��de��e	�ZdS)�NcCstj�tjdd�S)N�USERPROFILEzLocal Settings)�os�path�join�environ�rr�8/usr/lib/python3/dist-packages/keyring/util/platform_.py�_settings_root_XPsr	cCstj�dtj�dd��S)N�LOCALAPPDATA�ProgramData�.)rr�getrrrr�_settings_root_Vista
srcCs2t��\}}}}|dkrt�nt�}tj�|d�S)N�XPzPython Keyring)�platform�	win32_verr	rrrr)�release�version�csd�ptype�rootrrr�_data_root_WindowssrcCs.tj��d}tj�dd�p|}tj�|d�S)zW
    Use freedesktop.org Base Dir Specification to determine storage
    location.
    z.local/share�
XDG_DATA_HOMEN�python_keyring)�pathlib�Path�homerrr
rr)�fallbackrrrr�_data_root_LinuxsrcCshdd�t�d<tj�t�d�}tj�t�d�}tj�|�r0tj�|�s2d|�d|�d�}t|��dSdS)	a
    Prior versions of keyring would search for the config
    in XDG_DATA_HOME, but should probably have been
    searching for config in XDG_CONFIG_HOME. If the
    config exists in the former but not in the latter,
    raise a RuntimeError to force the change.
    cSsdS)Nrrrrr�<lambda>*sz(_check_old_config_root.<locals>.<lambda>�_check_old_config_rootz
keyringrc.cfgz/Keyring config exists only in the old location z and should be moved to z& to work with this version of keyring.N)�globalsrrr�_config_root_Linuxr�isfile�RuntimeError)�config_file_new�config_file_old�msgrrrr !s	����r cCs8t�tj��d}d}tj�|d�p|}tj�|d�S)zV
    Use freedesktop.org Base Dir Specification to determine config
    location.
    z.config�XDG_CONFIG_HOMENr)	r rrrrrr
rr)r�keyrrrrr"6s
r"�_data_root_�_config_root)rrrr	rrr�_config_root_Windowsr r"r!r
�system�	data_root�config_rootrrrr�<module>s