Skip to content

Commit a984f9f

Browse files
committed
ensure which call in ants/segmentation is correct)
1 parent f6f97b6 commit a984f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/ants/segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def _run_interface(self, runtime, correct_return_codes=(0,)):
723723
if ants_path is None:
724724
# Check for antsRegistration, which is under bin/ (the $ANTSPATH) instead of
725725
# checking for antsBrainExtraction.sh which is under script/
726-
cmd_path = which('antsRegistration', runtime.environ)
726+
cmd_path = which('antsRegistration', env=runtime.environ)
727727
if not cmd_path:
728728
raise RuntimeError(
729729
'The environment variable $ANTSPATH is not defined in host "%s", '

0 commit comments

Comments
 (0)