From 4bc30a40a398cc83a783e19fba045aacc74ccdf3 Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Mon, 3 Apr 2023 11:36:05 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Todd Gamblin --- lib/spack/spack/environment/environment.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/spack/spack/environment/environment.py b/lib/spack/spack/environment/environment.py index c50e662e31e..09971b996f3 100644 --- a/lib/spack/spack/environment/environment.py +++ b/lib/spack/spack/environment/environment.py @@ -480,13 +480,13 @@ def _current_root(self): Return the directory in which the view has been constructed. If the view is using renameat2 for atomic updates, self.root is a directory and the root - of the underlying implementation is the same as self.root. + directory of the view is the same as self.root. If the view us using symlinks for atomic updates, self.root is a link and we read the link - to find the root of the underlying implementation of the view. + to find the real root directory. - If self.root does not exist or is a regular file, there is no current implementation of the - view on the filesystem. + If self.root does not exist or is a regular file, the view has not been + constructed on the filesystem. """ if not os.path.islink(self.root): if os.path.isdir(self.root):