Commit 9e4c86e7 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Resolved TODO to use current interpreter

The current intepreter is in sys.executable
Having the option to use a different intepreter seems like asking for
trouble (as an older interpreter might not be able to read the pickle
parent 218c6a10
......@@ -252,5 +252,4 @@ def func_to_cmd(func, args, kwargs, tmp_dir=None, clean=False):
with open(filename, 'w') as python_file:
# TODO use current interpreter (e.g. fslpython)?
return "python " + filename + ('; rm ' + filename if clean else '')
return sys.executable + " " + filename + ('; rm ' + filename if clean else '')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment