We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c98cc3 commit bf7f356Copy full SHA for bf7f356
1 file changed
test/test_helper.py
@@ -1,7 +1,15 @@
1
import sys
2
from pathlib import Path
3
4
-LBUG_ROOT = Path(__file__).parent.parent
+_REPO_ROOT = Path(__file__).parent.parent.resolve()
5
+_SIBLING_ROOT = _REPO_ROOT.parent
6
+
7
+if (_REPO_ROOT / "dataset").exists():
8
+ LBUG_ROOT = _REPO_ROOT
9
+elif (_SIBLING_ROOT / "dataset").exists():
10
+ LBUG_ROOT = _SIBLING_ROOT
11
+else:
12
13
14
if sys.platform == "win32":
15
# \ in paths is not supported by lbug's parser
0 commit comments