OwlCyberSecurity - MANAGER
Edit File: appdirs.cpython-310.pyc
o ƚRe� � @ s� d Z ddlZddlZddlmZ ddlmZ dedefdd�Z dded e defdd�Zdded e defd d�Zdedee fdd�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. � N)�List)�platformdirs�appname�returnc C s t j| dd�S )NF)� appauthor)�_appdirs�user_cache_dir)r � r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/utils/appdirs.pyr s r T�roamingc C sB t j| d|d�}tj�|�r|S d}| rtj�|| �}tj�|�S )NF�r r z ~/.config/)r � user_data_dir�os�path�isdir�join� expanduser)r r r �linux_like_pathr r r �_macos_user_config_dir s r c C s$ t jdkr t| |�S tj| d|d�S )N�darwinFr )�sys�platformr r �user_config_dir)r r r r r r "