anki-2.1.0_beta25-web-folder.patch (498B)
- --- anki-2.1.0beta25/aqt/mediasrv.py
- +++ anki-2.1.0beta25/aqt/mediasrv.py
- @@ -13,7 +13,7 @@
- # locate web folder in source/binary distribution
- def _getExportFolder():
- # running from source?
- - srcFolder = os.path.join(os.path.dirname(__file__), "..")
- + srcFolder = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "share", "anki")
- webInSrcFolder = os.path.abspath(os.path.join(srcFolder, "web"))
- if os.path.exists(webInSrcFolder):
- return webInSrcFolder