Ensuring that path to to the default config is correct regardless of how the app was started.

This commit is contained in:
kevgliss 2015-07-04 12:55:28 -07:00
parent 277599f0e5
commit b04fb471e9
1 changed files with 1 additions and 2 deletions

View File

@ -91,8 +91,7 @@ def configure_app(app, config=None):
elif os.path.isfile(os.path.expanduser("~/.lemur/lemur.conf.py")):
app.config.from_object(from_file(os.path.expanduser("~/.lemur/lemur.conf.py")))
else:
app.config.from_object(from_file(os.path.join(os.getcwd(), 'default.conf.py')))
app.config.from_object(from_file(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'default.conf.py')))
def configure_extensions(app):