From 83694adfea0f34af6e43267fb41d9773bf0cd317 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Wed, 10 Jun 2026 23:46:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20task=5Fhandler=20SKILL=5FBASE=5FPATH=20?= =?UTF-8?q?=E7=A1=AC=E7=BC=96=E7=A0=81=E6=94=B9=E4=B8=BA=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 与 bootstrap.py 保持一致,支持 MOZI_SKILL_PATH 环境变量覆盖。 默认值不变。 --- src/daemon/task_handler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/daemon/task_handler.py b/src/daemon/task_handler.py index 5ebd5ab..0b447e2 100644 --- a/src/daemon/task_handler.py +++ b/src/daemon/task_handler.py @@ -29,7 +29,10 @@ ROLE_SKILL_MAP: Dict[str, str] = { "claim": "blackboard-claim", } -SKILL_BASE_PATH = "/Users/chufeng/.sanguo_projects/sanguo_mozi/skills" +SKILL_BASE_PATH = os.environ.get( + "MOZI_SKILL_PATH", + "/Users/chufeng/.sanguo_projects/sanguo_mozi/skills", +) # ---------------------------------------------------------------------------