Files
douyin_guaji-main/operations/__init__.py
T
CodexandClaude Opus 4.7 0c62696118 P3: 清理过期 TODO + 修正过期路径注释
- operations/__init__.py:
  - 模块描述里 "Underlying_Operations.py 模块化" 改为
    "douyin/core/underlying_operations.py 模块化拆分"(原文件已迁移)
  - 删除 "TODO: 逐步迁移后改为从子模块导入"——
    导入是有意保留的向后兼容层,不是待办

- douyin/reservation/core/__init__.py:
  - 删除 "临时导入" "TODO: 迁移完成后改为从子模块导入"
  - 这个 re-export 层也是有意保留的向后兼容设计

回归:140 .py 编译通过;operations + reservation.core 模块加载 OK;
test_filter_logging / check_web_gui_config_sync 通过。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 12:13:31 +08:00

46 lines
1.1 KiB
Python

"""底层操作模块
本目录包含从 douyin/core/underlying_operations.py 模块化拆分出的子模块。
对外仍统一通过本包导出符号,避免下游代码直接耦合到内部子模块路径。
"""
# 从子模块导入
from .ocr_operations import (
analyse_pic_word,
analyse_pic_digits,
extract_ocr_content,
_ensure_ocr,
)
from .screenshot_operations import (
get_screenshot,
_find_pic_path,
cut_pic,
save_reward_pic,
)
# 从原始大文件再导出,保持向后兼容;新代码请优先使用上面的子模块导入。
from douyin.core.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",
# 截图相关
"get_screenshot",
"_find_pic_path",
"cut_pic",
"save_reward_pic",
# 其他操作
"_safe_replace_file",
"_ensure_parent_dir",
"_mirror_screenshot_to_external",
"underlying_operations",
]