Skip to content

Commit 247dc4e

Browse files
committed
Fix error with Flask paths
1 parent 225ce3c commit 247dc4e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main_server.py

+5
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,11 @@ def update_gridsize(config, new_height, new_width):
861861

862862

863863
app = Flask(__name__)
864+
if getattr(sys, "frozen", False):
865+
app = Flask(__name__, template_folder='../../templates', static_folder='../../static')
866+
else:
867+
app = Flask(__name__, template_folder='templates', static_folder='static')
868+
864869
app.jinja_env.globals.update(select_audio_device=select_audio_device)
865870
if getattr(sys, "frozen", False):
866871
Minify(app=app, html=True, js=True, cssless=True)

0 commit comments

Comments
 (0)