aboutsummaryrefslogtreecommitdiffstats
path: root/python/futures.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/futures.py')
-rw-r--r--python/futures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/futures.py b/python/futures.py
index 98e1cd23..f8cd852d 100644
--- a/python/futures.py
+++ b/python/futures.py
@@ -1,7 +1,7 @@
import json
import datetime
import requests
-import common
+from common import root
import sys
import os
import pytz
@@ -40,7 +40,7 @@ r = requests.get(uri)
quotes = json.loads(r.text)
central = pytz.timezone('US/Central')
-with open(os.path.join(common.root, "data", "Yield Curves",
+with open(os.path.join(root, "data", "Yield Curves",
"futures-{0}.csv".format(workdate.date())), "w") as fh:
for q in quotes[u'marketDataInfoAsStringList'][u'message']:
q['tradeDate'] = q['tradeDate'].strip(' ').strip()