From 027e007173a010ea48c21fbb782c7c36a5429928 Mon Sep 17 00:00:00 2001 From: Benjamin Auquite Date: Sun, 18 Feb 2024 20:38:04 -0600 Subject: [PATCH] Update path.py --- Libraries/PyKotor/src/pykotor/tools/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/PyKotor/src/pykotor/tools/path.py b/Libraries/PyKotor/src/pykotor/tools/path.py index 98353cf57..57a288f35 100644 --- a/Libraries/PyKotor/src/pykotor/tools/path.py +++ b/Libraries/PyKotor/src/pykotor/tools/path.py @@ -153,7 +153,7 @@ def create_case_insensitive_pathlib_class(cls: type): # TODO: move into CaseAwa class CaseAwarePath(InternalWindowsPath if os.name == "nt" else InternalPosixPath): # type: ignore[misc] """A class capable of resolving case-sensitivity in a path. Absolutely essential for working with KOTOR files on Unix filesystems.""" def resolve(self, strict=False): # noqa: FBT002 - if not pathlib.Path.exists(self): + if not pathlib.Path(self).exists(): new_path = self.get_case_sensitive_path(self) return super(CaseAwarePath, new_path).resolve(strict) return super().resolve(strict)