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

Fix pathlib.Path usage #211

Merged
merged 3 commits into from
Jan 9, 2024
Merged

Fix pathlib.Path usage #211

merged 3 commits into from
Jan 9, 2024

Conversation

stefpiatek
Copy link
Contributor

@stefpiatek stefpiatek commented Jan 8, 2024

Previous fixes were passing in an object to an instance method Path.open(), which mean python would be treating that object as self, a Path. In orthanc we passed in a String which then can't be opened. This fixes the use of Path.

Because our system tests don't actually check for a successful image de-identification atm this was never caught. Fun.

orthanc is using python3.9 so there's no Path.open class method
@stefpiatek stefpiatek requested a review from a team January 8, 2024 12:08
@stefpiatek stefpiatek changed the title Ensure orthanc uses python3.9 pathlib Fix orthanc's usage of pathlib Jan 8, 2024
@stefpiatek stefpiatek changed the title Fix orthanc's usage of pathlib Fix pathlib.Path usage Jan 8, 2024
@stefpiatek stefpiatek merged commit 22aa62c into main Jan 9, 2024
8 checks passed
@stefpiatek stefpiatek deleted the stef/fix_py3.9_paths branch January 9, 2024 14:20
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.

2 participants