Python: pathlib beats os.path
pythonfilesystem
Path objects are easier to compose and inspect.
from pathlib import Path
p = Path('logs') / 'app.log'
print(p) Path objects are easier to compose and inspect.
from pathlib import Path
p = Path('logs') / 'app.log'
print(p)