From 3a2c067bd6790f9c10d7cf3f82cee7aa46777681 Mon Sep 17 00:00:00 2001 From: Dylan Garrett Date: Wed, 9 Jun 2021 22:27:21 -0700 Subject: Always load one or the other config --- roka.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roka.py') diff --git a/roka.py b/roka.py index 4bb86fb..9ac88d1 100755 --- a/roka.py +++ b/roka.py @@ -114,7 +114,7 @@ if __name__ == '__main__': self.__dict__ = d config = objectview(json.loads(args.config)) app.config.from_object(config) - elif os.path.exists(os.path.join(abs_path, 'app.cfg')): + else: app.config.from_pyfile(os.path.join(abs_path, 'app.cfg')) root_path = os.path.expanduser(app.config['ROOT_PATH']) -- cgit v1.2.3-54-g00ecf