change config file load to work when package

This commit is contained in:
Lili (Tlapka) 2022-09-23 11:15:06 +02:00
parent 2f4923ddc4
commit 2f54388814
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ from tlapbot.owncast_helpers import is_stream_live, give_points_to_chat
def create_app(test_config=None): def create_app(test_config=None):
app = Flask(__name__, instance_relative_config=True) app = Flask(__name__, instance_relative_config=True)
app.config.from_object('tlapbot.default_config') app.config.from_object('tlapbot.default_config')
app.config.from_object('tlapbot.config') app.config.from_pyfile('config.py')
# ensure the instance folder exists # ensure the instance folder exists
try: try: