diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/monitor.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/monitor.py b/python/monitor.py index 1929cb35..1f6001af 100644 --- a/python/monitor.py +++ b/python/monitor.py @@ -15,14 +15,14 @@ while True: workdate = str(datetime.date.today()) if os.path.exists(cusipsfile): with open(os.path.join(logpath, "build_portfolios.Rout"), "w") as fh: - p = subprocess.Popen(args1, stderr = fh) + p = subprocess.Popen(args1, stderr = subprocess.STDOUT, stdout = fh) if os.path.exists(scenariosfile): with open(scenariosfile) as fh: - dealnames = [line.split("\t")[0] for line in fh.readline()] + dealnames = [line.split(" ")[0] for line in fh] with open(os.path.join(logpath, "build_scenarios.Rout"), "w") as fh: - p = subprocess.(args2, stderr = fh) + p = subprocess.Popen(args2, stderr = subprocess.STDOUT, stdout = fh) p.wait() - generate_scenarios(workdate, dealnames, common.conn.common.cursor) + generate_scenarios(workdate, dealnames, common.conn, common.cursor) time.sleep(3) common.cursor.close() common.conn.close() |
