From b04fb471e9fb80efb871c9582ac21472d0cd135f Mon Sep 17 00:00:00 2001 From: kevgliss Date: Sat, 4 Jul 2015 12:55:28 -0700 Subject: [PATCH] Ensuring that path to to the default config is correct regardless of how the app was started. --- lemur/factory.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lemur/factory.py b/lemur/factory.py index e0470ae2..7dcb25b1 100644 --- a/lemur/factory.py +++ b/lemur/factory.py @@ -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):