summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-04-19 23:30:08 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2017-04-19 21:30:08 -0700
commit186d1f4511c8aa3bc5ce661b1e883db10e20958a (patch)
treeed96bf62008e82e75f4c3a4950b5341fa011c492 /share
parent3c0c0f3457fff8bb26cf34e101789b45c4d8bec8 (diff)
downloadspack-186d1f4511c8aa3bc5ce661b1e883db10e20958a.tar.gz
spack-186d1f4511c8aa3bc5ce661b1e883db10e20958a.tar.bz2
spack-186d1f4511c8aa3bc5ce661b1e883db10e20958a.tar.xz
spack-186d1f4511c8aa3bc5ce661b1e883db10e20958a.zip
Add lmod files to MODULEPATH (#3912)
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/setup-env.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh
index a67ae04b24..1b40b1d7bb 100755
--- a/share/spack/setup-env.sh
+++ b/share/spack/setup-env.sh
@@ -196,8 +196,10 @@ _spack_pathadd PATH "${_sp_prefix%/}/bin"
_sp_sys_type=$(spack-python -c 'print(spack.architecture.sys_type())')
_sp_dotkit_root=$(spack-python -c "print(spack.util.path.canonicalize_path(spack.config.get_config('config').get('module_roots', {}).get('dotkit')))")
_sp_tcl_root=$(spack-python -c "print(spack.util.path.canonicalize_path(spack.config.get_config('config').get('module_roots', {}).get('tcl')))")
+_sp_lmod_root=$(spack-python -c "print(spack.util.path.canonicalize_path(spack.config.get_config('config').get('module_roots', {}).get('lmod')))")
_spack_pathadd DK_NODE "${_sp_dotkit_root%/}/$_sp_sys_type"
_spack_pathadd MODULEPATH "${_sp_tcl_root%/}/$_sp_sys_type"
+_spack_pathadd MODULEPATH "${_sp_lmod_root%/}/$_sp_sys_type"
#
# Add programmable tab completion for Bash