Consider switching from os.path to pathlib
Pathlib is the newer module and seems to be the better (object-oriented) approach. But there are not too much differences in the handling.
Pathlib is the newer module and seems to be the better (object-oriented) approach. But there are not too much differences in the handling.