"""临时包装脚本：确保从项目根目录运行 gen_dataflow_report.py"""
import os
import sys
import traceback

root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
os.chdir(root)

scripts_ops = os.path.join(root, "scripts", "ops")
if scripts_ops not in sys.path:
    sys.path.insert(0, scripts_ops)

try:
    from gen_dataflow_report import main
    main()
except Exception as e:
    traceback.print_exc()
    sys.exit(1)
