only readlink on links (#23948)
This commit is contained in:
parent
2b78b04dc5
commit
b9a66966a8
1 changed files with 1 additions and 1 deletions
|
@ -500,7 +500,7 @@ def from_dict(base_path, d):
|
|||
|
||||
@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)
|
||||
|
|
Loading…
Reference in a new issue