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:
1 parent
a0162e3b81
commit
b9849b9f5a
9 files changed
+264
-344
No files matched your search
+7
-1
@@ -1549,7 +1549,13 @@ class Handler(BaseHTTPRequestHandler):
|
||||
n = int((qs.get("lines") or [200])[0])
|
||||
except Exception:
|
||||
n = 200
|
||||
path = os.path.join(BASE_DIR, "logs", "actions.log")
|
||||
# 使用统一的路径配置
|
||||
try:
|
||||
import path_config
|
||||
path = path_config.get_actions_log_path()
|
||||
except Exception:
|
||||
# 回退到旧路径(向后兼容)
|
||||
path = os.path.join(BASE_DIR, "logs", "actions.log")
|
||||
out_lines: list[str] = []
|
||||
try:
|
||||
if os.path.exists(path):
|
||||
|
||||
Reference in new issue
Block a user