♻️ refactor(json_handler): update trigger root path calculation
- change trigger root to use resolved path parents for consistency - improve path resolution to avoid reliance on home directory expansion
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user