From e56ffe3e8afbeb525ad2ea3a3c7adbe0af2b6a2c Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Fri, 26 Jul 2024 08:24:38 -0500 Subject: [PATCH] Allow usage of spack config vars in concrete env path --- lib/spack/spack/environment/environment.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/environment/environment.py b/lib/spack/spack/environment/environment.py index cd7221d425..3e02847a68 100644 --- a/lib/spack/spack/environment/environment.py +++ b/lib/spack/spack/environment/environment.py @@ -1017,7 +1017,11 @@ def add_view(name, values): def _process_concrete_includes(self): """Extract and load into memory included concrete spec data.""" - self.included_concrete_envs = self.manifest[TOP_LEVEL_KEY].get(included_concrete_name, []) + _included_concrete_envs = self.manifest[TOP_LEVEL_KEY].get(included_concrete_name, []) + # Expand config and environment variables + self.included_concrete_envs = [ + spack.util.path.canonicalize_path(_env) for _env in _included_concrete_envs + ] if self.included_concrete_envs: if os.path.exists(self.lock_path):