Skip to content

Commit ef9122e

Browse files
committed
Merge pull request #547 from moloney/bf-unicode-paths
BF: Fix issue where unicode paths were not recognized as files.
2 parents 641fc7c + e5d4440 commit ef9122e

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)