From 51b92210db942583ea7cbb0b105012b9d3e13841 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 31 Aug 2026 15:52:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(load=5Fpath):=20ROOT=E6=94=B9=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E7=9B=B8=E5=AF=B9=E5=AE=9A=E4=BD=8D=E2=80=94=E2=80=94?= =?UTF-8?q?=E5=86=99=E6=AD=BB~/pipeline=E5=9C=A8=E7=94=9F=E4=BA=A7HOME=3D/?= =?UTF-8?q?d/doit=E4=B8=8B=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/load_path.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/load_path.py b/scripts/load_path.py index 7deb057..d812d6c 100644 --- a/scripts/load_path.py +++ b/scripts/load_path.py @@ -2,7 +2,8 @@ """Register all pipeline module RBAC permissions in one run.""" import sys, os, asyncio -ROOT = os.path.expanduser("~/pipeline") +# 应用根目录 = scripts/ 的上一级(不写死 ~/pipeline,各环境 HOME 不同) +ROOT = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")) sys.path.insert(0, os.path.join(ROOT, "py3", "lib", "python3.10", "site-packages")) sys.path.insert(0, ROOT)