Skip to content

Commit e5d4440

Browse files
committed
BF: Fix issue where unicode paths were not recognized as files.
Fixes issue where output files with unicode paths were always being deleted if remove_unnecessary_outputs was set to True.
1 parent 8edf1e1 commit e5d4440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def walk_outputs(object):
634634
if isdefined(val):
635635
out.extend(walk_outputs(val))
636636
else:
637-
if isdefined(object) and isinstance(object, str):
637+
if isdefined(object) and isinstance(object, basestring):
638638
if os.path.islink(object) or os.path.isfile(object):
639639
out = [(filename, 'f') for filename in get_all_files(object)]
640640
elif os.path.isdir(object):

0 commit comments

Comments
 (0)