Skip to content

Commit 5558d80

Browse files
committed
docs: 更新CHANGELOG,记录2.4.1 Windows路径修复
1 parent 64b0584 commit 5558d80

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@
55
格式基于 [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
项目遵循 [语义化版本](https://semver.org/spec/v2.0.0.html) 规范。
77

8+
## [2.4.1] - 2026-02-23
9+
10+
### 🐛 Bug 修复
11+
12+
- **Windows 相对路径修复** - `DataServer``data_path` 参数现使用 `Path.resolve()` 转换为绝对路径,修复 Windows 下相对路径失效问题
13+
- **Windows 路径自动发现** - `get_project_root()` 新增检查 `cwd.parent`,支持从子目录(如 `notebooks/`)运行时自动发现上级的 `data/``strategies/` 目录
14+
- **路径常量懒加载** - `paths.py` 模块级常量改用 `__getattr__` 延迟计算,避免 import 时 CWD 错误导致路径固化;`Config.data_path` 属性每次动态调用 `get_project_root()`,不再缓存旧路径
15+
16+
### 📦 升级指南
17+
18+
```bash
19+
pip install --upgrade simtradelab==2.4.1
20+
```
21+
22+
**兼容性:** ✅ API 接口无 breaking change。
23+
24+
---
25+
826
## [2.4.0] - 2026-02-21
927

1028
### ✨ 新增功能

0 commit comments

Comments
 (0)