Skip to content
Snippets Groups Projects
Commit e5b86c55 authored by ajw1980's avatar ajw1980 Committed by Peter Scheibel
Browse files

Retrieve environment-modules prefix based on architecture (#10975)

When multiple instances of environment-modules were installed with
different architectures, Spack was not retrieving the installation
appropriate for the current architecture when finding the module
prefix.
parent 7a4712b9
Branches
Tags
No related merge requests found
......@@ -584,7 +584,8 @@ def shell_set(var, value):
# print environment module system if available. This can be expensive
# on clusters, so skip it if not needed.
if 'modules' in info:
specs = spack.store.db.query('environment-modules')
specs = spack.store.db.query(
'environment-modules arch=%s' % spack.architecture.sys_type())
if specs:
shell_set('_sp_module_prefix', specs[-1].prefix)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment