From 695dcd14301646a9d8da780270d5028d040a79ef Mon Sep 17 00:00:00 2001 From: William Triplett Date: Wed, 24 Feb 2016 11:35:21 -0600 Subject: [PATCH] Standarding FSLOUTPUTTYPE env. variable for tmp files. --- scripts/pydeface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/pydeface.py b/scripts/pydeface.py index 04dd1fe..a0c8e8e 100755 --- a/scripts/pydeface.py +++ b/scripts/pydeface.py @@ -94,6 +94,8 @@ def main(): print 'FSL must be installed and FSLDIR environment variable must be defined' sys.exit(2) + # standardize environment for flirt tempfiles + os.environ['FSLOUTPUTTYPE'] = 'NIFTI_GZ' foo,tmpmat=tempfile.mkstemp() tmpmat=tmpmat+'.mat'