File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,12 +126,13 @@ def _get_dataset_entry(name: str) -> TutorialDataset:
126126
127127
128128def _meshfiles_path () -> Path :
129- """Support both local development from a cloned
129+ """Locate the local ``test/meshfiles`` directory for tutorial datasets.
130+ This supports both local development from a cloned
130131 repo and cwd fallback supports docs builds that run from the root repo"""
131- candidates = (
132- Path ( __file__ ). resolve (). parents [ 2 ] / "test" / "meshfiles" ,
133- Path .cwd () / "test" / "meshfiles" ,
134- )
132+ candidates = [ Path ( __file__ ). resolve (). parents [ 2 ] / "test" / "meshfiles" ]
133+
134+ cwd = Path .cwd (). resolve ()
135+ candidates . extend ( parent / "test" / "meshfiles" for parent in ( cwd , * cwd . parents ) )
135136
136137 for path in candidates :
137138 if path .exists ():
You can’t perform that action at this time.
0 commit comments