refactor: 优化 CoreDriver 实现并增强代码可读性

- 优化 部分核心功能实现。
- 新增 详细的文档字符串(Docstrings)和注释。
- 移除 代码中的冗余注释和无效代码。
This commit is contained in:
2026-01-22 15:39:20 +08:00
parent 1bcad0d166
commit 2e98252e34
5 changed files with 266 additions and 87 deletions

View File

@@ -14,8 +14,9 @@ import os
from pathlib import Path
# 项目根目录 (core 的上一级)
BASE_DIR = Path(__file__).parent.parent
# BASE_DIR = Path(__file__).parent.parent
BASE_DIR = Path(__file__).resolve().parents[1] # 获取根路径(绝对路径)
print(BASE_DIR)
# --- 目录配置 ---
OUTPUT_DIR = BASE_DIR / "outputs"
LOG_DIR = OUTPUT_DIR / "logs"