Skip to content

Commit e766264

Browse files
committed
Fixes specification of definitions directories in Python 3.9
The trick for converting a MultiplexedPath to a regular Path, using `joinpath('')` does not work in Python 3.9. It turns out that it was probably not needed in the latest version anyway.
1 parent 686a8c0 commit e766264

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/nxvalidate/validate.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ def __init__(self, definitions=None):
8585
elif isinstance(definitions, Path):
8686
self.definitions = definitions.resolve()
8787
else:
88-
self.definitions = definitions.joinpath('')
88+
self.definitions = definitions
8989
else:
90-
self.definitions = package_files(
91-
'nxvalidate.definitions').joinpath('')
90+
self.definitions = package_files('nxvalidate.definitions')
9291
self.baseclasses = self.definitions / 'base_classes'
9392
if not self.baseclasses.exists():
9493
raise NeXusError(f'"{self.baseclasses}" does not exist')

0 commit comments

Comments
 (0)