✏️ 编辑:appdirs.cpython-39.opt-1.pyc
路径:
/usr/lib/python3.9/site-packages/pip/_internal/utils/__pycache__/appdirs.cpython-39.opt-1.pyc
大小:1.55 KB · 修改:2026-05-23 08:59:54 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �lj� � @ s| d Z ddlZddlZddlmZ ddlmZ eed�dd�Z dee ed �d d�Zdee ed �dd �Zeee d�dd�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 �?/usr/lib/python3.9/site-packages/pip/_internal/utils/appdirs.pyr s r T)r �roamingr c C sB t j| d|d�}tj�|�r |S d}| r6tj�|| �}tj�|�S )NF�r r z ~/.config/)r Z user_data_dir�os�path�isdir�join� expanduser)r r r Zlinux_like_pathr r r �_macos_user_config_dir s r c C s$ t jdkrt| |�S tj| d|d�S )N�darwinFr )�sys�platformr r �user_config_dir)r r r r r r "