summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2019-09-05 18:15:36 -0700
committerGitHub <noreply@github.com>2019-09-05 18:15:36 -0700
commit3f1c78128ed8ae96d2b76d0e144c38cbc1c625df (patch)
treeacb7d63e28262ee001a60e6e8bf5d2d095aa8e33 /lib
parent34647913be0fcb7d1e204011c6a27321e565346a (diff)
downloadspack-3f1c78128ed8ae96d2b76d0e144c38cbc1c625df.tar.gz
spack-3f1c78128ed8ae96d2b76d0e144c38cbc1c625df.tar.bz2
spack-3f1c78128ed8ae96d2b76d0e144c38cbc1c625df.tar.xz
spack-3f1c78128ed8ae96d2b76d0e144c38cbc1c625df.zip
make env view loading unconditional (#12719)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/environment.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/spack/spack/environment.py b/lib/spack/spack/environment.py
index 56b6fde6f3..adb062d1cb 100644
--- a/lib/spack/spack/environment.py
+++ b/lib/spack/spack/environment.py
@@ -955,10 +955,8 @@ class Environment(object):
path_updates = list()
if default_view_name in self.views:
- for var, subdirs in updates:
- paths = filter(lambda x: os.path.exists(x),
- list(os.path.join(self.default_view.root, x)
- for x in subdirs))
+ for var, dirs in updates:
+ paths = [os.path.join(self.default_view.root, x) for x in dirs]
path_updates.append((var, paths))
return path_updates