Commit a6d99d84 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Clear FSL env vars before install

parent 323a5b52
......@@ -1232,10 +1232,16 @@ def install_fsl(ctx):
printmsg('Installing FSL into {}...'.format(ctx.destdir))
# Clear any environment variables that
# refer to an existing FSL installation
env = os.environ.copy()
for v in env:
if 'FSL' in v:
# post-link scripts call $FSLDIR/share/fsl/sbin/createFSLWrapper
# (part of fsl/base), which will only do its thing if the following
# env vars are set
env = os.environ.copy()
env['FSLDIR'] = ctx.destdir
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment