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
|
@ -34,7 +34,11 @@ def _getExportFolder():
|
||||||
dir = os.path.dirname(os.path.abspath(__file__))
|
dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
return os.path.abspath(dir + "/../../Resources/web")
|
return os.path.abspath(dir + "/../../Resources/web")
|
||||||
else:
|
else:
|
||||||
raise Exception("couldn't find web folder")
|
if os.environ.get("TEST_TARGET"):
|
||||||
|
# running tests in bazel; we have no data
|
||||||
|
return "."
|
||||||
|
else:
|
||||||
|
raise Exception("couldn't find web folder")
|
||||||
|
|
||||||
|
|
||||||
_exportFolder = _getExportFolder()
|
_exportFolder = _getExportFolder()
|
||||||
|
|
Loading…
Reference in a new issue