RegisteredProject.matches_root_path: Use more robust equivalence check using samepath

Fixes #991
This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-02-05 15:34:25 +01:00
1 parent e176fc84f1
commit 0528549808
1 file changed
+1 -1
+1 -1
View File
@@ -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":
"""