summaryrefslogtreecommitdiff
path: root/opendc/util/rest.py
diff options
context:
space:
mode:
authorSacheendra Talluri <sacheendra.t@gmail.com>2017-01-25 16:17:36 +0100
committerSacheendra Talluri <sacheendra.t@gmail.com>2017-01-25 16:17:36 +0100
commit532ecf39611113ac59b084935f68016bd353e73f (patch)
treeecce75c171445755e20e2930682b1c78bbd9e15e /opendc/util/rest.py
parentee0379056a25862102a5068bc579889ed963f4e7 (diff)
makes the app take config file as command line argument and opens port on all interfaces instead of localhost
Diffstat (limited to 'opendc/util/rest.py')
-rw-r--r--opendc/util/rest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc/util/rest.py b/opendc/util/rest.py
index a52b0082..65747762 100644
--- a/opendc/util/rest.py
+++ b/opendc/util/rest.py
@@ -7,7 +7,7 @@ from oauth2client import client, crypt
from opendc.util import exceptions, parameter_checker
-with open('/var/www/opendc.ewi.tudelft.nl/web-server/config/keys.json') as file:
+with open(sys.argv[1]) as file:
KEYS = json.load(file)
class Request(object):