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

Switch to using pathlib everywhere #49

Open
johentsch opened this issue Jul 2, 2023 · 0 comments
Open

Switch to using pathlib everywhere #49

johentsch opened this issue Jul 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@johentsch
Copy link
Member

johentsch commented Jul 2, 2023

Currently all paths are (to be) specified as strings and manipulated using os.path. Part of the strategy to do the switch is therefore to look for all uses of os.path.

  • For aesthetics, whenever paths are displayed that are beneath the home directory, the latter should be replaced by ~ (as is currently the case with dimcat.utils.AbsolutePathStr).
  • The serialization of all basepath (and other path) arguments needs to be adapted because Marshmallow does not recognize a Path object as string (create a custom field for paths, there is a marshmallow issue with solutions somewhere)
@johentsch johentsch added the enhancement New feature or request label Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant