Skip to content

Commit 02f0688

Browse files
committed
Merge pull request #149 from effigies/issue_144
BF: env can print lines without "="
2 parents 0d8fd5b + 760f2e1 commit 02f0688

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

surfer/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ def project_volume_data(filepath, hemi, reg_file=None, subject_id=None,
176176
cmd = ['bash', '-c', 'source {} && env'.format(
177177
os.path.join(env['FREESURFER_HOME'], 'FreeSurferEnv.sh'))]
178178
envout = check_output(cmd)
179-
env = dict(line.split('=', 1) for line in envout.split('\n') if line)
179+
env = dict(line.split('=', 1) for line in envout.split('\n')
180+
if '=' in line)
180181

181182
# Set the basic commands
182183
cmd_list = ["mri_vol2surf",

0 commit comments

Comments
 (0)