mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 06:17:58 +00:00
RegisteredProject.matches_root_path: Use more robust equivalence check using samepath
Fixes #991
This commit is contained in:
1 parent
e176fc84f1
commit
0528549808
1 file changed
+1
-1
@@ -438,7 +438,7 @@ class RegisteredProject(ToStringMixin):
|
||||
:param path: the path to check
|
||||
:return: True if the path matches the project root, False otherwise
|
||||
"""
|
||||
return self.project_root == Path(path).resolve()
|
||||
return self.project_root.samefile(Path(path).resolve())
|
||||
|
||||
def get_project_instance(self) -> "Project":
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user