Skip to content
Snippets Groups Projects
Commit 186d1f45 authored by Adam J. Stewart's avatar Adam J. Stewart Committed by Todd Gamblin
Browse files

Add lmod files to MODULEPATH (#3912)

parent 3c0c0f34
Branches
Tags
No related merge requests found
...@@ -196,8 +196,10 @@ _spack_pathadd PATH "${_sp_prefix%/}/bin" ...@@ -196,8 +196,10 @@ _spack_pathadd PATH "${_sp_prefix%/}/bin"
_sp_sys_type=$(spack-python -c 'print(spack.architecture.sys_type())') _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_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_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 DK_NODE "${_sp_dotkit_root%/}/$_sp_sys_type"
_spack_pathadd MODULEPATH "${_sp_tcl_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 # Add programmable tab completion for Bash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment