refactor: 入口脚本迁移到 bin/

将 4 个入口脚本从根目录迁移到 bin/:
- run_cli.py
- gui_app.py
- webgui_launcher.py
- manage_logs.py

配套修改:
- 修复 bin/*.py 内部 ROOT_DIR 计算(parent.parent)
- bin/run_cli.py 在 sys.path 加入项目根,shim 加载逻辑保持不变
- bin/manage_logs.py 在 sys.path 加入项目根
- path_config.get_run_cli_path() 返回 bin/run_cli.py

启动方式变化:
- 原: python run_cli.py / python gui_app.py
- 新: python bin/run_cli.py / python bin/gui_app.py

GUI 内部通过 path_config.get_run_cli_path() 调用,自动适配。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CodexandClaude Opus 4.5 committed 2026-05-21 00:23:14 +08:00
1 parent 309b629e7c
commit e3e399da70
5 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ def get_robot_verify_pic_path(save_subdir: bool = False) -> str:
def get_run_cli_path() -> str:
"""返回 run_cli.py 的路径(绝对路径)"""
return os.path.abspath(os.path.join(PROJECT_ROOT, "run_cli.py"))
return os.path.abspath(os.path.join(PROJECT_ROOT, "bin", "run_cli.py"))
def ensure_dir(path: str) -> None: