Skip to content

Commit 854a5ea

Browse files
committed
fix tutorials path
1 parent ed851ad commit 854a5ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test_tutorials/test_tutorials.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77

88
# ROOT.gROOT.SetBatch(True)
99

10-
tutorial_dir = pathlib.Path(os.environ.get("ROOTSYS")) / "tutorials"
10+
tutorial_dir = pathlib.Path(str(ROOT.gROOT.GetTutorialDir())) or pathlib.Path(ROOT.__file__).parent.parent.parent / "tutorials"
1111
tutorials = list(tutorial_dir.rglob("*.py"))
1212

13+
1314
@pytest.mark.parametrize("tutorial", tutorials)
1415
def test_tutorial(tutorial):
1516
# subprocess.run([sys.executable, str(tutorial)], check=True)

0 commit comments

Comments
 (0)