feat: Implement 30-minute timeout protection and unify path configurations
- Introduced a 30-minute timeout mechanism to prevent the script from getting stuck in invalid states, with configurable timeout settings. - Unified path configurations across the project to enhance maintainability and avoid hardcoded paths. - Updated documentation and flowcharts to reflect the new timeout feature and improved path management. - Fixed issues with template and screenshot path configurations to ensure consistency across the project.
This commit is contained in:
1 parent
686dde5cc0
commit
26df350755
64 files changed
+7568
-414
No files matched your search
@@ -0,0 +1,48 @@
|
||||
"""底层操作模块
|
||||
|
||||
本目录包含从 Underlying_Operations.py 模块化后的操作模块。
|
||||
"""
|
||||
|
||||
# 从子模块导入
|
||||
from .ocr_operations import (
|
||||
analyse_pic_word,
|
||||
analyse_pic_digits,
|
||||
extract_ocr_content,
|
||||
_ensure_ocr,
|
||||
_detect_gpu_available,
|
||||
)
|
||||
from .screenshot_operations import (
|
||||
get_screenshot,
|
||||
_find_pic_path,
|
||||
cut_pic,
|
||||
save_reward_pic,
|
||||
)
|
||||
|
||||
# 从原文件导入以保持向后兼容
|
||||
# TODO: 逐步迁移后改为从子模块导入
|
||||
from Underlying_Operations import (
|
||||
_safe_replace_file,
|
||||
_ensure_parent_dir,
|
||||
_mirror_screenshot_to_external,
|
||||
underlying_operations,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# OCR相关
|
||||
"analyse_pic_word",
|
||||
"analyse_pic_digits",
|
||||
"extract_ocr_content",
|
||||
"_ensure_ocr",
|
||||
"_detect_gpu_available",
|
||||
# 截图相关
|
||||
"get_screenshot",
|
||||
"_find_pic_path",
|
||||
"cut_pic",
|
||||
"save_reward_pic",
|
||||
# 其他操作
|
||||
"_safe_replace_file",
|
||||
"_ensure_parent_dir",
|
||||
"_mirror_screenshot_to_external",
|
||||
"underlying_operations",
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user