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

Use PathBuf for python path input #1813

Merged
merged 3 commits into from
Oct 8, 2024
Merged

Use PathBuf for python path input #1813

merged 3 commits into from
Oct 8, 2024

Conversation

ljeub-pometry
Copy link
Collaborator

What changes were proposed in this pull request?

Replace &str and String by PathBuf for python path input

Why are the changes needed?

This allows passing in pathlib.Path as well as strings on the python side for the path and avoids unnecessary errors.

Does this PR introduce any user-facing change? If yes is this documented?

Less nonsense exceptions in python :)

How was this patch tested?

The tests

Are there any further changes required?

  • Double-check there aren't any other places where this change needs to happen.
  • Make sure we use PathBuf for path input in the future.

@miratepuffin miratepuffin merged commit 39c5969 into master Oct 8, 2024
19 checks passed
@miratepuffin miratepuffin deleted the fix/PythonPathInput branch October 8, 2024 16:25
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