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

Refactor path usages with pathlib.Path objects #121

Open
papantel opened this issue Dec 7, 2023 · 0 comments
Open

Refactor path usages with pathlib.Path objects #121

papantel opened this issue Dec 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@papantel
Copy link

papantel commented Dec 7, 2023

os.path and literal paths can be refactored to use pathlib.Path objects. This enhancement could provide a better OS interoperability handling.

Some examples:

  • setup.py uses "directory/filename.extension" strings,
  • char = '/' if 'Linux' in platform.system() else '\\' in LiquidMetalInterface.set_custom_properties_path() method (even on the set_custom_properties_path Improvement #110 branch): its purpose can be automatically handled by a Path object depending on the current running station (Path implement a / operator to do so).
@panDanieleN panDanieleN self-assigned this Dec 22, 2023
@panDanieleN panDanieleN added invalid This doesn't seem right enhancement New feature or request and removed invalid This doesn't seem right labels Dec 22, 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

2 participants