change config file load to work when package
This commit is contained in:
parent
2f4923ddc4
commit
2f54388814
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue