Skip to content

Commit bf7f356

Browse files
committed
ci: handle dataset for both ladybug and ladybug-python
1 parent 1c98cc3 commit bf7f356

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test/test_helper.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
import sys
22
from pathlib import Path
33

4-
LBUG_ROOT = Path(__file__).parent.parent
4+
_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+
LBUG_ROOT = _REPO_ROOT
513

614
if sys.platform == "win32":
715
# \ in paths is not supported by lbug's parser

0 commit comments

Comments
 (0)