Skip to content

Commit

Permalink
fixed init problem with partly uninitialized conf
Browse files Browse the repository at this point in the history
  • Loading branch information
denisri committed Sep 22, 2023
1 parent bec6d7b commit d35a7af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion capsul/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def __init_subclass__(cls) -> None:

def __init__(self, base_path='', **kwargs):
super().__init__(**kwargs)
if not isinstance(base_path, Path):
if base_path is not undefined and base_path is not None \
and not isinstance(base_path, Path):
self.base_path = Path(base_path)
else:
self.base_path = base_path
Expand Down

0 comments on commit d35a7af

Please sign in to comment.