Skip to content

Commit 8766840

Browse files
committed
fix: potential fix for #2968 in the context of resolving/rebasing paths
1 parent 689e521 commit 8766840

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
@@ -532,10 +532,10 @@ def _recurse_on_path_traits(func, thistrait, value, cwd):
532532
elif thistrait.is_trait_type(traits.List):
533533
innertrait, = thistrait.inner_traits
534534
if not isinstance(value, (list, tuple)):
535-
value = _recurse_on_path_traits(func, innertrait, value, cwd)
536-
else:
537-
value = [_recurse_on_path_traits(func, innertrait, v, cwd)
538-
for v in value]
535+
value = [value]
536+
537+
value = [_recurse_on_path_traits(func, innertrait, v, cwd)
538+
for v in value]
539539
elif thistrait.is_trait_type(traits.Dict):
540540
_, innertrait = thistrait.inner_traits
541541
value = {k: _recurse_on_path_traits(func, innertrait, v, cwd)

0 commit comments

Comments
 (0)