aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/tasks.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/tasks.py b/python/tasks.py
index 663090cb..956be940 100644
--- a/python/tasks.py
+++ b/python/tasks.py
@@ -1,10 +1,9 @@
import subprocess
from intex_scenarios import generate_scenarios
import os
-from common import root
-Rpath = os.path.join(root, "code", "R")
-logpath = os.path.join(root, "logs")
+Rpath = os.path.join(os.environ['ROOT_DIR'], "code", "R")
+logpath = os.path.join(os.environ['ROOT_DIR'], "logs")
def build_portfolio(workdate, dealname, reinvflag):
args = ["Rscript", "--vanilla", os.path.join(Rpath, "build_portfolios.R"), \