From bd11541678c0b7fe0068e465c480239bdf2dd889 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sun, 14 May 2023 18:16:12 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BC=93=E5=AD=98=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/command/command.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/model/command/command.py b/model/command/command.py index ed218e2f7..2f73a2f71 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -123,9 +123,8 @@ class Command: mm = os.system(f"pip3 install {line.strip()}") if mm != 0: return False, "插件依赖安装失败,需要您手动pip安装对应插件的依赖。", "plugin" - # 加载没缓存的插件 - ok, err = self.plugin_reload(cached_plugins) + ok, err = self.plugin_reload(cached_plugins, target=d) if ok: return True, "插件拉取并载入成功~", "plugin" else: