Skip to content
Snippets Groups Projects
Commit dd5c0310 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: try and avoid weird errors in conda-forge I

parent 22eefcb2
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ from . import mockFSLDIR
mock_fsl_sub = """
#!{}
#!/usr/bin/env python3
import random
import os
......@@ -62,8 +62,7 @@ with open('{{}}.o{{}}'.format(cmd, jobid), 'w') as stdout, \
print(str(jobid))
sys.exit(0)
""".format(sys.executable, op.dirname(fsl.__file__)).strip()
""".format(op.dirname(fsl.__file__)).strip()
@contextlib.contextmanager
def fslsub_mockFSLDIR():
......
......@@ -18,9 +18,9 @@ from .. import mockFSLDIR as mockFSLDIR_base, make_random_image
mock_fslstats = """
#!{}
#!/usr/bin/env python3
shape = {{outshape}}
shape = {outshape}
import sys
import numpy as np
......@@ -31,7 +31,7 @@ if len(shape) == 1:
data = data.reshape(1, -1)
np.savetxt(sys.stdout, data, fmt='%i')
""".format(sys.executable).strip()
""".strip()
@contextlib.contextmanager
......
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