pypsa-meets-earth/pypsa-earth

Move from os to pathlib

Open

#501 opened on Oct 29, 2022

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (349 forks)auto 404
good first issueimprovement

Repository metrics

Stars
 (351 stars)
PR merge metrics
 (PR metrics pending)

Description

From Discord: "os.path vs pathlib": https://builtin.com/software-engineering-perspectives/python-pathlib The os module represents paths as strings with which you cannot do much. The pathlib module represents paths as special objects with useful methods and attributes.

Max: Let's use Pathlib by default. Tracking this here as a feature request so someone can work on the transition in future. I think it is a nice exercise for new contributors to get familiar with the code & the git workflow

Contributor guide