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:
parent
c01ced6ecb
commit
d9bff1e8ce
@ -50,7 +50,7 @@ def _getExportFolder() -> str:
|
||||
|
||||
|
||||
_exportFolder = _getExportFolder()
|
||||
app = flask.Flask(__name__)
|
||||
app = flask.Flask(__name__, root_path="/fake")
|
||||
flask_cors.CORS(app)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user