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 new path configuration, ensuring consistency and maintainability across the project.
This commit is contained in:
1 parent
b9849b9f5a
commit
bdf9312bc9
58 files changed
+2472
-854
No files matched your search
+7
-2
@@ -49,8 +49,8 @@ def get_state_dir() -> str:
|
||||
|
||||
|
||||
def get_reservations_path() -> str:
|
||||
"""返回预约队列状态文件的路径"""
|
||||
return os.path.join(PROJECT_ROOT, "state", "reservations.json")
|
||||
"""返回预约队列状态文件的路径(实际位置在douyin/core/state/reservations.json)"""
|
||||
return os.path.join(PROJECT_ROOT, "douyin", "core", "state", "reservations.json")
|
||||
|
||||
|
||||
def get_high_value_rooms_path() -> str:
|
||||
@@ -117,6 +117,11 @@ def get_robot_verify_pic_path(save_subdir: bool = False) -> str:
|
||||
return os.path.join(PROJECT_ROOT, "pic", "机器人验证.png")
|
||||
|
||||
|
||||
def get_run_cli_path() -> str:
|
||||
"""返回 run_cli.py 的路径(绝对路径)"""
|
||||
return os.path.abspath(os.path.join(PROJECT_ROOT, "run_cli.py"))
|
||||
|
||||
|
||||
def ensure_dir(path: str) -> None:
|
||||
"""确保目录存在,不存在则创建"""
|
||||
dir_path = os.path.dirname(path) if os.path.isfile(path) else path
|
||||
|
||||
Reference in new issue
Block a user