upload_plan.py 250 Bytes
Newer Older
BO ZHANG's avatar
BO ZHANG committed
1
2
3
4
5
6
7
8
9
from csst_dag import DFS
from csst_dfs_client import plan
import argparse
import sys
import os

plan_path = sys.argv[1]
assert os.path.exists(plan_path), f"Plan file {plan_path} does not exist"

BO ZHANG's avatar
BO ZHANG committed
10
res = plan.write_file(local_file=plan_path)
BO ZHANG's avatar
BO ZHANG committed
11
print(res)