denshoproject / ddr-cmdln

Command-line tools for automating the Densho Digital Repository's various processes.
Other
0 stars 2 forks source link

Replace str paths with pathlib.Path #182

Open gjost opened 4 years ago

gjost commented 4 years ago

Replace str paths with pathlib.Path. Subclass pathlib.Path so absolute and relative paths can be tracked by type hinting:

class AbsPath(pathlib.Path):
    pass
class RelPath(pathlib.Path):
    pass