logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

anki-2.1.0_beta25-web-folder.patch (498B)


  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