관리-도구
편집 파일: appdirs.cpython-36.pyc
3 �ReE � @ s^ d Z ddlmZ ddlZddlmZ ddlmZ er@ddl m Z dd� Zdd d�Zdd � Z dS )z� This code wraps the vendored appdirs module to so the return values are compatible for the current pip code base. The intention is to rewrite current usages gradually, keeping the tests pass, and eventually drop this after all usages are changed. � )�absolute_importN)�appdirs)�MYPY_CHECK_RUNNING)�Listc C s t j| dd�S )NF)� appauthor)�_appdirs�user_cache_dir)�appname� r ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/appdirs.pyr s r Tc C sJ t j| d|d�}t jdkrFtjj|� rFtjjd�}| rFtjj|| �}|S )NF)r �roaming�darwinz ~/.config/)r �user_config_dir�system�os�path�isdir� expanduser�join)r r r r r r r s r c C s2 t j| ddd�}t jdkr,|jtj�dg S |gS )NFT)r � multipath�win32r z/etc)r r )r �site_config_dirr �splitr �pathsep)r �dirvalr r r �site_config_dirs&