From 3d850b4d695acb4de3616eca947cfb0b7390154e Mon Sep 17 00:00:00 2001 From: Dylan Garrett Date: Sun, 6 Jun 2021 15:58:51 -0700 Subject: Allow base_url with no app.cfg --- roka.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roka.py') diff --git a/roka.py b/roka.py index 4b6a523..8d81641 100755 --- a/roka.py +++ b/roka.py @@ -9,7 +9,8 @@ from lib.util import check_auth, escape, generate_rss, read_cache abs_path = os.path.dirname(os.path.abspath(__file__)) app = Flask(__name__) -app.config.from_pyfile(os.path.join(abs_path, 'app.cfg')) +if os.path.exists(os.path.join(abs_path, 'app.cfg')): + app.config.from_pyfile(os.path.join(abs_path, 'app.cfg')) cache_path = os.path.join(abs_path, 'cache') json_path = os.path.join(cache_path, 'audiobooks.json') -- cgit v1.2.3-54-g00ecf