Skip to content

Commit d1f0b3e

Browse files
DylanDylan
Dylan
authored and
Dylan
committed
[FIX] Don't return empty command
1 parent 30d3e1b commit d1f0b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/afni/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class AFNIPythonCommandInputSpec(CommandLineInputSpec):
295295
class AFNIPythonCommand(AFNICommand):
296296
@property
297297
def cmd(self):
298-
if spawn.find_executable(super(AFNIPythonCommand, self).cmd) != '':
298+
if spawn.find_executable(super(AFNIPythonCommand, self).cmd) is not None:
299299
return spawn.find_executable(super(AFNIPythonCommand, self).cmd)
300300
else:
301301
return super(AFNIPythonCommand, self).cmd

0 commit comments

Comments
 (0)