diff --git a/arcade/resources/__init__.py b/arcade/resources/__init__.py index addb55248..5ce00fb23 100644 --- a/arcade/resources/__init__.py +++ b/arcade/resources/__init__.py @@ -95,6 +95,12 @@ def resolve(path: Union[str, Path]) -> Path: else: path = Path(path) + try: + path = Path(path.resolve(strict=True)) + except AttributeError: + # WARNING: This is due to an issue caused by Nuitka overriding strings into janky path object + path = Path(path.absolute()) + # Always return absolute paths # Check for the existence of the file and provide useful feedback to # avoid deep stack trace into pathlib