fix oneapi modules (#38400)

This commit is contained in:
simonleary-umass-edu
2023-06-18 07:17:19 -04:00
committed by GitHub
parent 242854f266
commit 5c6c3b403b

View File

@@ -121,7 +121,7 @@ def setup_run_environment(self, env):
$ source {prefix}/{component}/{version}/env/vars.sh
"""
# Only if environment modifications are desired (default is +envmods)
if "+envmods" in self.spec:
if "~envmods" not in self.spec:
env.extend(
EnvironmentModifications.from_sourcing_file(
join_path(self.component_prefix, "env", "vars.sh")