Skip to content

Commit

Permalink
Merge pull request #368 from mintbridge/patch-1
Browse files Browse the repository at this point in the history
parse the config file before passing to create server
  • Loading branch information
Stiivi authored Aug 22, 2016
2 parents 7c8e5e0 + bf875ed commit f3364d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cubes/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
from .base import create_server
from .base import read_slicer_config
from .utils import str_to_bool

# Set the configuration file
Expand All @@ -10,7 +11,8 @@
except KeyError:
CONFIG_PATH = os.path.join(os.getcwd(), "slicer.ini")

application = create_server(CONFIG_PATH)
config = read_slicer_config(CONFIG_PATH)
application = create_server(config)

debug = os.environ.get("SLICER_DEBUG")
if debug and str_to_bool(debug):
Expand Down

0 comments on commit f3364d9

Please sign in to comment.