File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
nipype/interfaces/mrtrix3 Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class LabelConfig(MRTrix3Base):
72
72
>>> labels.run() # doctest: +SKIP
73
73
"""
74
74
75
- _cmd = 'labelconfig: '
75
+ _cmd = 'labelconfig'
76
76
input_spec = LabelConfigInputSpec
77
77
output_spec = LabelConfigOutputSpec
78
78
@@ -82,10 +82,16 @@ def _parse_inputs(self, skip=None):
82
82
83
83
if not isdefined (self .inputs .in_config ):
84
84
from distutils .spawn import find_executable
85
- path = op .dirname (find_executable (self ._cmd ))
86
- self .inputs .in_config = op .abspath (
87
- op .join (path , '../src/dwi/tractography/connectomics/'
88
- 'example_configs/fs_default.txt' ))
85
+ path = find_executable (self ._cmd )
86
+ if path is None :
87
+ path = os .getenv (MRTRIX3_HOME , '/opt/mrtrix3' )
88
+ else :
89
+ path = op .dirname (op .dirname (path ))
90
+
91
+ self .inputs .in_config = op .join (
92
+ path , 'src/dwi/tractography/connectomics/'
93
+ 'example_configs/fs_default.txt' )
94
+
89
95
return super (LabelConfig , self )._parse_inputs (skip = skip )
90
96
91
97
def _list_outputs (self ):
You can’t perform that action at this time.
0 commit comments