在准备环境前提交次全部更改。
This commit is contained in:
18
scripts/ops/_run_report.py
Normal file
18
scripts/ops/_run_report.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""临时包装脚本:确保从项目根目录运行 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)
|
||||
Reference in New Issue
Block a user