Files
ailine/tools/run.py

17 lines
460 B
Python
Raw Normal View History

#!/usr/bin/env python3
"""统一入口:设置路径后运行测试"""
import sys
from pathlib import Path
from dotenv import load_dotenv
# 路径设置 - 只添加 backend 目录
project_root = Path(__file__).resolve().parent.parent
backend_path = project_root
sys.path.insert(0, str(backend_path))
load_dotenv(project_root / ".env")
if __name__ == "__main__":
from tools.test.test_graph_branches import main
import asyncio
asyncio.run(main())