mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 06:23:57 -05:00
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
280daee4d3
commit
63b658e276
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue