Skip to content

Commit c697018

Browse files
committed
ENH: Add _cmd_prefix class variable to CommandLine
1 parent 045b28e commit c697018

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/base/core.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ class must be instantiated with a command argument
857857
858858
"""
859859
input_spec = CommandLineInputSpec
860+
_cmd_prefix = ''
860861
_cmd = None
861862
_version = None
862863
_terminal_output = 'stream'
@@ -915,7 +916,7 @@ def cmdline(self):
915916
""" `command` plus any arguments (args)
916917
validates arguments and generates command line"""
917918
self._check_mandatory_inputs()
918-
allargs = [self.cmd] + self._parse_inputs()
919+
allargs = [self._cmd_prefix + self.cmd] + self._parse_inputs()
919920
return ' '.join(allargs)
920921

921922
@property

0 commit comments

Comments
 (0)