Probably for legacy reasons before pathlib moved into the python standard library. Change it to just use the standard library instead.
Probably for legacy reasons before pathlib moved into the python standard library. Change it to just use the standard library instead.