Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
installer
Commits
a6d99d84
Commit
a6d99d84
authored
Aug 04, 2021
by
Paul McCarthy
🚵
Browse files
RF: Clear FSL env vars before install
parent
323a5b52
Changes
1
Hide whitespace changes
Inline
Side-by-side
fslinstaller.py
View file @
a6d99d84
...
...
@@ -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
:
env
.
pop
(
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
[
'FSL_CREATE_WRAPPER_SCRIPTS'
]
=
'1'
env
[
'FSLDIR'
]
=
ctx
.
destdir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment