chore: Remove obsolete scripts and enhance path configuration

- Deleted `check_md_files.py` and `fix_cursor_md_issue.py` as they are no longer needed.
- Added new functions in `path_config.py` for better path management, including actions log and run_cli paths.
- Updated various modules to utilize the unified path configuration, ensuring backward compatibility and improved maintainability.
- Enhanced documentation in `README.md` to reflect changes in path management and project structure.
This commit is contained in:
Your Name committed 2025-12-28 20:47:30 +08:00
1 parent a0162e3b81
commit b9849b9f5a
9 files changed
+264 -344

No files matched your search

+7 -1
View File
@@ -3167,7 +3167,13 @@ def main():
def refresh_actions_log():
"""读取 logs/actions.log 的尾部若干行,在 GUI 中展示关键行为日志(支持简单关键字筛选)。"""
path = os.path.join(os.path.dirname(__file__), "logs", "actions.log")
# 使用统一的路径配置
try:
from path_config import get_actions_log_path
path = get_actions_log_path()
except Exception:
# 回退到旧路径(向后兼容)
path = os.path.join(os.path.dirname(__file__), "logs", "actions.log")
try:
if os.path.exists(path):
# 仿照 web_gui 的实现:只读最后一小段,避免文件巨大