diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index 4d6f35b..2593e0f 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -122,12 +122,13 @@ class Path: def relative_to(self, other): other = Path(other) - other.correct_case() - self.correct_case() if self == other: return '.' + self.correct_case() + other.correct_case() + if self in other: relative = self.absolute_path relative = relative.replace(other.absolute_path, '', 1)