🐛 修复自动更新依赖

This commit is contained in:
KimigaiiWuyi 2024-09-30 23:06:48 +08:00
parent 1ca76cd8dc
commit 0c8699ba87

View File

@ -223,6 +223,7 @@ def install_dependencies(dependencies: Dict, need_update: bool = False):
'pdm run python -m ensurepip', 'pdm run python -m ensurepip',
capture_output=True, capture_output=True,
text=True, text=True,
shell=True,
) )
# 检查命令执行结果 # 检查命令执行结果
if result.returncode != 0: if result.returncode != 0:
@ -270,6 +271,7 @@ def install_dependencies(dependencies: Dict, need_update: bool = False):
CMD, CMD,
capture_output=True, capture_output=True,
text=True, text=True,
shell=True,
) )
# 检查命令执行结果 # 检查命令执行结果
if result.returncode == 0: if result.returncode == 0: