From 2f543888146edf2bccfd11b2c314fb16022aaea0 Mon Sep 17 00:00:00 2001 From: Lili Date: Fri, 23 Sep 2022 11:15:06 +0200 Subject: [PATCH] change config file load to work when package --- tlapbot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlapbot/__init__.py b/tlapbot/__init__.py index 5ba8b11..20d0995 100644 --- a/tlapbot/__init__.py +++ b/tlapbot/__init__.py @@ -7,7 +7,7 @@ from tlapbot.owncast_helpers import is_stream_live, give_points_to_chat def create_app(test_config=None): app = Flask(__name__, instance_relative_config=True) app.config.from_object('tlapbot.default_config') - app.config.from_object('tlapbot.config') + app.config.from_pyfile('config.py') # ensure the instance folder exists try: