]> git.bzium.org/ - embe/overlay.git/blob - app-misc/anki/files/anki-2.1.0_beta25-web-folder.patch
19b196c4ace7c5b317db2e95569c3a5c0c27c415
[embe/overlay.git] / app-misc / anki / files / anki-2.1.0_beta25-web-folder.patch
1 --- anki-2.1.0beta25/aqt/mediasrv.py
2 +++ anki-2.1.0beta25/aqt/mediasrv.py
3 @@ -13,7 +13,7 @@
4  # locate web folder in source/binary distribution
5  def _getExportFolder():
6      # running from source?
7 -    srcFolder = os.path.join(os.path.dirname(__file__), "..")
8 +    srcFolder = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "share", "anki")
9      webInSrcFolder = os.path.abspath(os.path.join(srcFolder, "web"))
10      if os.path.exists(webInSrcFolder):
11          return webInSrcFolder