balena-sdk-python
balena-sdk-python copied to clipboard
Use `pathlib` instead of `os.path`
https://github.com/balena-io/balena-sdk-python/blob/7a9be5f150dc680d53b6be206874ff8a593f2a0b/balena/settings.py#L3
Starting with python 3.4, pathlib
became - to the best of my knowledge - the de facto way of handling paths in an object-oriented way.
While we will not be able to simply replace the above with
from pathlib import Path
without breaking anything, there is a somewhat of an official migration guide at https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module
Originally posted by @pranasziaukas in https://github.com/balena-io/balena-sdk-python/pull/326#discussion_r1238615013