Skip to content
Snippets Groups Projects
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
files)
parent 218c6a10
No related branches found
No related tags found
No related merge requests found
...@@ -252,5 +252,4 @@ def func_to_cmd(func, args, kwargs, tmp_dir=None, clean=False): ...@@ -252,5 +252,4 @@ def func_to_cmd(func, args, kwargs, tmp_dir=None, clean=False):
with open(filename, 'w') as python_file: with open(filename, 'w') as python_file:
python_file.write(python_cmd) python_file.write(python_cmd)
# TODO use current interpreter (e.g. fslpython)? return sys.executable + " " + filename + ('; rm ' + filename if clean else '')
return "python " + filename + ('; rm ' + filename if clean else '')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment