From 751be2d30bbac8a20c6c4aa770f3b7251ff68e76 Mon Sep 17 00:00:00 2001 From: AIOSAI Date: Thu, 5 Mar 2026 22:46:04 -0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(json=5Fhandler):?= =?UTF-8?q?=20update=20trigger=20root=20path=20calculation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - change trigger root to use resolved path parents for consistency - improve path resolution to avoid reliance on home directory expansion --- src/aipass/trigger/apps/handlers/json/json_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aipass/trigger/apps/handlers/json/json_handler.py b/src/aipass/trigger/apps/handlers/json/json_handler.py index b6b17c27..1ad9b27d 100644 --- a/src/aipass/trigger/apps/handlers/json/json_handler.py +++ b/src/aipass/trigger/apps/handlers/json/json_handler.py @@ -25,7 +25,7 @@ import inspect # Infrastructure # Constants -TRIGGER_ROOT = Path.home() / "aipass_core" / "trigger" +TRIGGER_ROOT = Path(__file__).resolve().parents[3] TRIGGER_JSON_DIR = TRIGGER_ROOT / "trigger_json" JSON_TEMPLATES_DIR = TRIGGER_ROOT / "apps" / "json_templates"