mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix tests on Linux
This commit is contained in:
parent
927a44e36e
commit
ecfeb71195
1 changed files with 5 additions and 1 deletions
|
@ -33,6 +33,10 @@ def _getExportFolder():
|
|||
elif isMac:
|
||||
dir = os.path.dirname(os.path.abspath(__file__))
|
||||
return os.path.abspath(dir + "/../../Resources/web")
|
||||
else:
|
||||
if os.environ.get("TEST_TARGET"):
|
||||
# running tests in bazel; we have no data
|
||||
return "."
|
||||
else:
|
||||
raise Exception("couldn't find web folder")
|
||||
|
||||
|
|
Loading…
Reference in a new issue