improve postprocessor handling

- add pathfmt argument for __init__()
- add finalization step
- add option to keep or delete zipped files
This commit is contained in:
Mike Fährmann
2018-06-08 17:39:02 +02:00
parent 2628911ba0
commit baccf8a958
6 changed files with 75 additions and 47 deletions

View File

@@ -12,7 +12,11 @@ from . import log
class PostProcessor():
"""Base class for postprocessors"""
log = log
def run(self, pathfmt):
raise NotImplementedError()
"""Execute the postprocessor for a file"""
def finalize(self):
"""Cleanup"""