Skip to content

GUI: use importlib.resources instead of manual path construction - #3385

Closed
deruyter92 wants to merge 3 commits into
jaap/safe_resolve_pathsfrom
gui_importlib_resources
Closed

GUI: use importlib.resources instead of manual path construction#3385
deruyter92 wants to merge 3 commits into
jaap/safe_resolve_pathsfrom
gui_importlib_resources

Conversation

@deruyter92

Copy link
Copy Markdown
Collaborator

This PR builds on top of #3349 and is related to #3350. Together these PRs enforce more robust path resolution across the codebase.

Summary
This PR replaces all manual path constructions in the GUI (for accessing the assets, like the logo, etc) with importlib.resources. This loads correctly regardless of the process working directory, editable installs, or where the user launched the GUI from and should be the canonical way to load GUI assets. It was already implemented in some places, but now made more consistent.

@deruyter92
deruyter92 requested a review from C-Achard July 7, 2026 08:11
@deruyter92
deruyter92 marked this pull request as draft July 7, 2026 08:28
@deruyter92
deruyter92 removed the request for review from C-Achard July 7, 2026 08:28
@deruyter92

Copy link
Copy Markdown
Collaborator Author

ok nevermind, I forgot this was already taken care of in #3370, closing this PR.

@deruyter92 deruyter92 closed this Jul 7, 2026
@deruyter92
deruyter92 deleted the gui_importlib_resources branch July 7, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant