Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nipype/pipeline/plugins/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def _submit_job(self, node, updatehash=False):
pyscript = create_pyscript(node, updatehash=updatehash)
batch_dir, name = os.path.split(pyscript)
name = ".".join(name.split(".")[:-1])
batchscript = "\n".join((self._template, "%s %s" % (sys.executable, pyscript)))
batchscript = "\n".join((self._template[:-1], "%s %s" % (sys.executable, pyscript)))
batchscriptfile = os.path.join(batch_dir, "batchscript_%s.sh" % name)
with open(batchscriptfile, "wt") as fp:
fp.writelines(batchscript)
Expand Down