diff options
Diffstat (limited to 'python/tasks.py')
| -rw-r--r-- | python/tasks.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/tasks.py b/python/tasks.py index e8db6d26..41465f13 100644 --- a/python/tasks.py +++ b/python/tasks.py @@ -1,5 +1,6 @@ import subprocess from intex_scenarios import generate_scenarios +from common import conn import os if os.name =='nt': @@ -21,3 +22,6 @@ def build_scenarios(workdate, dealname, reinvflag): workdate, dealname + "," + reinvflag] with open(os.path.join(logpath, "build_scenarios.Rout"), "w") as fh: subprocess.call(args, stderr = subprocess.STDOUT, stdout = fh) + +def gen_scenarios(workdate, dealname): + generate_scenarios(conn, workdate, dealname) |
