YSK: there is a library called pathlib with different methods for accessing files which you might like since they do not require a context manager
YSK: there is a library called pathlib with different methods for accessing files which you might like since they do not require a context manager
https://docs.python.org/3/library/pathlib.html
I'm creating this post mainly so that I don't forget the name again.