fix: correct APP_ROOT to single dirname since script is in project root

This commit is contained in:
yumoqing 2026-05-05 14:15:32 +08:00
parent bec9cb956b
commit 77cdacf878
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ import importlib.util
# 配置 # 配置
# ============================================================ # ============================================================
APP_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) APP_ROOT = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, APP_ROOT) sys.path.insert(0, APP_ROOT)
# perm_config.py 路径 # perm_config.py 路径

View File

@ -32,7 +32,7 @@ import importlib.util
# 配置 # 配置
# ============================================================ # ============================================================
APP_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) APP_ROOT = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, APP_ROOT) sys.path.insert(0, APP_ROOT)
# perm_config.py 路径 # perm_config.py 路径