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
0853f539
Commit
0853f539
authored
Aug 04, 2021
by
Paul McCarthy
🚵
Browse files
Merge branch 'rf/clear-env' into 'master'
Rf/clear env See merge request fsl/conda/installer!14
parents
323a5b52
7477c874
Changes
1
Show whitespace changes
Inline
Side-by-side
fslinstaller.py
View file @
0853f539
...
@@ -52,7 +52,7 @@ log = logging.getLogger(__name__)
...
@@ -52,7 +52,7 @@ log = logging.getLogger(__name__)
__absfile__
=
op
.
abspath
(
__file__
).
rstrip
(
'c'
)
__absfile__
=
op
.
abspath
(
__file__
).
rstrip
(
'c'
)
__version__
=
'1.1.
0
'
__version__
=
'1.1.
1
'
"""Installer script version number. This is automatically updated
"""Installer script version number. This is automatically updated
whenever a new version of the installer script is released.
whenever a new version of the installer script is released.
"""
"""
...
@@ -1232,10 +1232,16 @@ def install_fsl(ctx):
...
@@ -1232,10 +1232,16 @@ def install_fsl(ctx):
printmsg
(
'Installing FSL into {}...'
.
format
(
ctx
.
destdir
))
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
list
(
env
.
keys
()):
if
'FSL'
in
v
:
env
.
pop
(
v
)
# post-link scripts call $FSLDIR/share/fsl/sbin/createFSLWrapper
# post-link scripts call $FSLDIR/share/fsl/sbin/createFSLWrapper
# (part of fsl/base), which will only do its thing if the following
# (part of fsl/base), which will only do its thing if the following
# env vars are set
# env vars are set
env
=
os
.
environ
.
copy
()
env
[
'FSL_CREATE_WRAPPER_SCRIPTS'
]
=
'1'
env
[
'FSL_CREATE_WRAPPER_SCRIPTS'
]
=
'1'
env
[
'FSLDIR'
]
=
ctx
.
destdir
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