- Updated multiple files to replace static imports of `douyin_screenshot_manager` with dynamic imports using `importlib`. This change enhances flexibility and prevents import errors when the module is unavailable. - Added fallback mechanisms in `fudai_core.py` to ensure the application continues to function even if certain dependencies are missing, improving robustness. - Adjusted error handling to provide clearer feedback during initialization failures, particularly for OCR-related components.
10 lines
284 B
Python
10 lines
284 B
Python
"""
|
|
处理器模块
|
|
"""
|
|
# 显式导入常用子模块以便静态类型检查器(如 Pylance)能正确识别模块成员
|
|
try:
|
|
from . import douyin_screenshot_manager # type: ignore
|
|
except Exception:
|
|
# 导入失败时不影响运行(运行时会按需导入)
|
|
pass
|