a
    e0hE                     @   s^   d Z ddlmZ ddlZddlmZ ddlmZ er@ddl	m
Z
 dd Zdd
dZdd ZdS )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| ddS )NF)	appauthor)_appdirsuser_cache_dir)appname r
   I/var/www/auris/lib/python3.9/site-packages/pip/_internal/utils/appdirs.pyr      s    r   Tc                 C   sH   t j| d|d}t jdkrDtj|sDtjd}| rDtj|| }|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| ddd}t jdvr,|tjdg S |gS )NFT)r   	multipath)win32r   z/etc)r   site_config_dirr   splitr   pathsep)r	   dirvalr
   r
   r   site_config_dirs&   s    
r   )T)__doc__
__future__r   r   pip._vendorr   r   pip._internal.utils.typingr   typingr   r   r   r   r
   r
   r
   r   <module>   s   
