summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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