11 lines
289 B
Python
11 lines
289 B
Python
import sys
|
||
from pathlib import Path
|
||
|
||
# 将项目根目录加入 sys.path(adk web 从 agents/ 启动)
|
||
# __file__ = agents/root_agent/__init__.py → parent.parent.parent = workspace/
|
||
sys.path.insert(0, str(Path(__file__).parent.parent.parent))
|
||
|
||
from . import agent
|
||
|
||
__all__ = ["agent"]
|