Hacker News new | ask | show | jobs
by kami8845 5178 days ago
check out path.py

https://github.com/dottedmag/path.py

it's awesome for dealing with paths instead of having to do stuff like

    os.path.abspath(os.path.join(os.path.join(x,y),z)) 
everytime, it gives you nice abstractions like

    path('/home/me').files('*.jpg')
1 comments

Os.path.join can take more than two arguments. So it's not as bad as that example.