only readlink on links (#23948)
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user