diff options
author | Dylan Garrett <dylan.garrett@gmail.com> | 2021-06-06 15:58:51 -0700 |
---|---|---|
committer | Dylan Garrett <dylan.garrett@gmail.com> | 2021-06-06 15:58:51 -0700 |
commit | 3d850b4d695acb4de3616eca947cfb0b7390154e (patch) | |
tree | f4bee38d206370e169f2aef7f471448e437ecbf7 /roka.py | |
parent | 0300ecf7be0063a60a5b603c6c5134e0afa00593 (diff) | |
download | roka-3d850b4d695acb4de3616eca947cfb0b7390154e.tar.gz roka-3d850b4d695acb4de3616eca947cfb0b7390154e.zip |
Allow base_url with no app.cfg
Diffstat (limited to 'roka.py')
-rwxr-xr-x | roka.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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') |