aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/risk_insight/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/risk_insight/views.py b/python/risk_insight/views.py
index 01ca91df..a1921efc 100644
--- a/python/risk_insight/views.py
+++ b/python/risk_insight/views.py
@@ -4,7 +4,6 @@ import os, csv, yaml
import datetime
import psycopg2
-basedir = "/home/share/CorpCDOs"
def get_attach_from_name(index_type, series):
if index_type.lower() == "ig":
if series == 9:
@@ -83,7 +82,7 @@ def get_indices_quotes():
@app.route("/tranches.html")
def tranches():
- with open(os.path.join(basedir, "code", "etc", "runs.yml")) as fh:
+ with open(os.path.join(os.getenv("CODE_DIR"), "etc", "runs.yml")) as fh:
config = yaml.load(fh)
series_list = sorted(list(set([int(index[2:]) for index, tenor in config['runs']])))
return render_template("tranches.html", series=series_list)