We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e671d61 commit 02e32dcCopy full SHA for 02e32dc
nipype/interfaces/freesurfer/preprocess.py
@@ -7,6 +7,7 @@
7
import os.path as op
8
from glob import glob
9
import shutil
10
+import sys
11
12
import numpy as np
13
from nibabel import load
@@ -726,7 +727,7 @@ def cmdline(self):
726
727
outdir = self._get_outdir()
728
cmd = []
729
if not os.path.exists(outdir):
- cmdstr = "python -c \"import os; os.makedirs('%s')\"" % outdir
730
+ cmdstr = "%s -c \"import os; os.makedirs('%s')\"" % (op.basename(sys.executable), outdir)
731
cmd.extend([cmdstr])
732
infofile = os.path.join(outdir, "shortinfo.txt")
733
if not os.path.exists(infofile):
0 commit comments