Skip to content

Commit 8945f8e

Browse files
committed
fix: potential fix for #2968 in the context of resolving/rebasing paths
1 parent 0fcd736 commit 8945f8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/interfaces/base/traits_extension.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,10 @@ def _recurse_on_path_traits(func, thistrait, value, cwd):
539539
elif thistrait.is_trait_type(traits.List):
540540
innertrait, = thistrait.inner_traits
541541
if not isinstance(value, (list, tuple)):
542-
value = _recurse_on_path_traits(func, innertrait, value, cwd)
543-
else:
544-
value = [_recurse_on_path_traits(func, innertrait, v, cwd)
545-
for v in value]
542+
value = [value]
543+
544+
value = [_recurse_on_path_traits(func, innertrait, v, cwd)
545+
for v in value]
546546
elif thistrait.is_trait_type(traits.Dict):
547547
_, innertrait = thistrait.inner_traits
548548
value = {k: _recurse_on_path_traits(func, innertrait, v, cwd)

0 commit comments

Comments
 (0)