only readlink on links (#23948)
This commit is contained in:
parent
2b78b04dc5
commit
b9a66966a8
@ -500,7 +500,7 @@ def from_dict(base_path, d):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def _current_root(self):
|
def _current_root(self):
|
||||||
if not os.path.exists(self.root):
|
if not os.path.islink(self.root):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
root = os.readlink(self.root)
|
root = os.readlink(self.root)
|
||||||
|
Loading…
Reference in New Issue
Block a user