We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0af2d62 commit 00f1936Copy full SHA for 00f1936
tests/conftest.py
@@ -12,7 +12,7 @@ def examples() -> Path:
12
"""Get bids-examples from submodule, allow environment variable override."""
13
ret = os.getenv('BIDS_EXAMPLES')
14
if not ret:
15
- ret = importlib.resources.files() / 'data' / 'bids-examples'
+ ret = importlib.resources.files(__spec__.parent) / 'data' / 'bids-examples'
16
if not any(ret.iterdir()):
17
pytest.skip('bids-examples submodule is not checked out')
18
return Path(ret)
0 commit comments