diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/tasks.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/python/tasks.py b/python/tasks.py index 41465f13..bcdb42e9 100644 --- a/python/tasks.py +++ b/python/tasks.py @@ -1,12 +1,7 @@ import subprocess from intex_scenarios import generate_scenarios -from common import conn import os - -if os.name =='nt': - root = "//WDsentinel/share/CorpCDOs" -elif os.name == 'posix': - root = '/home/share/CorpCDOs' +from common import root Rpath = os.path.join(root, "code", "R") logpath = os.path.join(root, "logs") @@ -22,6 +17,3 @@ 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) |
