provide root_path to flask

Flask tries to look up root_path using __file__, which may not be
available. It's used for static file hosting and templates, neither
of which we use.
This commit is contained in:
Damien Elmes 2021-10-10 13:47:02 +10:00
parent c01ced6ecb
commit d9bff1e8ce

View File

@ -50,7 +50,7 @@ def _getExportFolder() -> str:
_exportFolder = _getExportFolder() _exportFolder = _getExportFolder()
app = flask.Flask(__name__) app = flask.Flask(__name__, root_path="/fake")
flask_cors.CORS(app) flask_cors.CORS(app)