From 093a247b25ccc03adac1838c9f79feb8462a4f3d Mon Sep 17 00:00:00 2001 From: psakievich Date: Thu, 17 Dec 2020 11:25:08 -0700 Subject: [PATCH] View location resolve environment variables (#20420) --- lib/spack/spack/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/environment.py b/lib/spack/spack/environment.py index 0b63bad6a7..c098ed4b36 100644 --- a/lib/spack/spack/environment.py +++ b/lib/spack/spack/environment.py @@ -40,6 +40,7 @@ import spack.util.lock as lk from spack.util.path import substitute_path_variables from spack.installer import PackageInstaller +import spack.util.path #: environment variable used to indicate the active environment spack_env_var = 'SPACK_ENV' @@ -468,7 +469,7 @@ class ViewDescriptor(object): def __init__(self, base_path, root, projections={}, select=[], exclude=[], link=default_view_link): self.base = base_path - self.root = root + self.root = spack.util.path.canonicalize_path(root) self.projections = projections self.select = select self.select_fn = lambda x: any(x.satisfies(s) for s in self.select)