Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick nuitka fix #2008

Merged
merged 3 commits into from
Mar 3, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions arcade/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 objec
DragonMoffon marked this conversation as resolved.
Show resolved Hide resolved
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
Expand Down
Loading