Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3b23551

Browse filesBrowse files
committed
fix for missing command error when calling ants binary
1 parent 54490f9 commit 3b23551
Copy full SHA for 3b23551

File tree

1 file changed

+5
-3
lines changed
Filter options

1 file changed

+5
-3
lines changed

‎nipype/interfaces/base.py

Copy file name to clipboardExpand all lines: nipype/interfaces/base.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,10 +1570,12 @@ def __init__(self, command=None, terminal_output=None, **inputs):
15701570
super(CommandLine, self).__init__(**inputs)
15711571
self._environ = None
15721572
# Set command. Input argument takes precedence
1573-
self._cmd = command or getattr(self, '_cmd', None)
1574-
1575-
if self._cmd is None:
1573+
if not hasattr(self, '_cmd'):
1574+
self._cmd = None
1575+
if self.cmd is None and command is None:
15761576
raise Exception("Missing command")
1577+
if command:
1578+
self._cmd = command
15771579

15781580
if terminal_output is not None:
15791581
self.terminal_output = terminal_output

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.