summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/environment.py b/lib/spack/spack/environment.py
index 647352a10e..b649d112dc 100644
--- a/lib/spack/spack/environment.py
+++ b/lib/spack/spack/environment.py
@@ -500,7 +500,7 @@ class ViewDescriptor(object):
@property
def _current_root(self):
- if not os.path.exists(self.root):
+ if not os.path.islink(self.root):
return None
root = os.readlink(self.root)