refactor: 优化 CoreDriver 实现并增强代码可读性
- 优化 部分核心功能实现。 - 新增 详细的文档字符串(Docstrings)和注释。 - 移除 代码中的冗余注释和无效代码。
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user