관리-도구
편집 파일: appdirs.cpython-37.pyc
B ��Re3e � @ s� d Z dZedd� e�d�D ��ZddlZddlZejd dkZerFe Z ej�d�r�ddlZe� � d d Ze�d �rzd Zq�e�d�r�dZq�d Zn ejdkr�ejdkr�d ZnejZd:dd�Zd;dd�Zd<dd�Zd=dd�Zd>dd�Zd?dd�Zd@dd�ZG d d!� d!e�Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zed k�r�ydd*lmZ eZ W nB e!k �r� yddl"Z#eZ W n e!k �r� eZ Y nX Y nX d+d,� Z$e%d-k�r�d.Z&d/Z'd0Z(e)d1e � e)d2� ee&e'd3d4�Z*x$e(D ]Z+e)d5e+e,e*e+�f � �q�W e)d6� ee&e'�Z*x$e(D ]Z+e)d5e+e,e*e+�f � �qW e)d7� ee&�Z*x$e(D ]Z+e)d5e+e,e*e+�f � �q<W e)d8� ee&dd9�Z*x$e(D ]Z+e)d5e+e,e*e+�f � �qvW dS )AzyUtilities for determining application-specific dirs. See <http://github.com/ActiveState/appdirs> for details and usage. z1.4.4c c s | ]}t |�V qd S )N)�int)�.0�segment� r ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_vendor/appdirs.py� <genexpr> s r �.� N� �java�Windows�win32ZMac�darwinZlinux2�cli�ntFc C s� t dkr^|dkr| }|rdpd}tj�t|��}| r�|dk rNtj�||| �}q�tj�|| �}nNt dkr�tj�d�}| r�tj�|| �}n&t�dtj�d ��}| r�tj�|| �}| r�|r�tj�||�}|S ) a� Return full path to the user-specific data dir for this application. "appname" is the name of application. If None, just the system directory is returned. "appauthor" (only used on Windows) is the name of the appauthor or distributing body for this application. Typically it is the owning company name. This falls back to appname. You may pass False to disable it. "version" is an optional version path element to append to the path. You might want to use this if you want multiple versions of your app to be able to run independently. If used, this would typically be "<major>.<minor>". Only applied when appname is present. "roaming" (boolean, default False) can be set True to use the Windows roaming appdata directory. That means that for users on a Windows network setup for roaming profiles, this user data will be sync'd on login. See <http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx> for a discussion of issues. Typical user data directories are: Mac OS X: ~/Library/Application Support/<AppName> # or ~/.config/<AppName>, if the other does not exist Unix: ~/.local/share/<AppName> # or in $XDG_DATA_HOME, if defined Win XP (not roaming): C:\Documents and Settings\<username>\Application Data\<AppAuthor>\<AppName> Win XP (roaming): C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName> Win 7 (not roaming): C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName> Win 7 (roaming): C:\Users\<username>\AppData\Roaming\<AppAuthor>\<AppName> For Unix, we follow the XDG spec and support $XDG_DATA_HOME. That means, by default "~/.local/share/<AppName>". r N� CSIDL_APPDATA�CSIDL_LOCAL_APPDATAFr z~/Library/Application Support/� XDG_DATA_HOMEz~/.local/share)�system�os�path�normpath�_get_win_folder�join� expanduser�getenv)�appname� appauthor�version�roaming�constr r r r � user_data_dir1 s&