diff --git a/bin/wm_harden_transform.py b/bin/wm_harden_transform.py index 9baafed3..905bc1fa 100755 --- a/bin/wm_harden_transform.py +++ b/bin/wm_harden_transform.py @@ -115,7 +115,7 @@ def command_harden_transform(polydata, transform, inverse, slicer_path, outdir): str_inverse = 0 print(f"<{os.path.basename(__file__)}> Transforming: {polydata}") - cmd = f"{slicer_path} --no-main-window --python-script $(which harden_transform_with_slicer.py) {polydata} {transform} {str(str_inverse)} {outdir} --python-code 'slicer.app.quit()' >> f{os.path.join(outdir, 'log.txt 2>&1')}" + cmd = f"{slicer_path} --no-main-window --python-script $(which harden_transform_with_slicer.py) {polydata} {transform} {str(str_inverse)} {outdir} --python-code 'slicer.app.quit()' >> {os.path.join(outdir, 'log.txt 2>&1')}" os.system(cmd)