diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/tasks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tasks.py b/python/tasks.py index bcdb42e9..663090cb 100644 --- a/python/tasks.py +++ b/python/tasks.py @@ -10,10 +10,10 @@ def build_portfolio(workdate, dealname, reinvflag): args = ["Rscript", "--vanilla", os.path.join(Rpath, "build_portfolios.R"), \ workdate, dealname + "," + reinvflag] with open(os.path.join(logpath, "build_portfolios.Rout"), "w") as fh: - subprocess.call(args, stderr = subprocess.STDOUT, stdout = fh) + subprocess.call(args, stderr = subprocess.STDOUT, stdout = fh, env=os.environ) def build_scenarios(workdate, dealname, reinvflag): args = ["Rscript", "--vanilla", os.path.join(Rpath, "build_scenarios.R"), \ workdate, dealname + "," + reinvflag] with open(os.path.join(logpath, "build_scenarios.Rout"), "w") as fh: - subprocess.call(args, stderr = subprocess.STDOUT, stdout = fh) + subprocess.call(args, stderr = subprocess.STDOUT, stdout = fh, env=os.environ) |
