update PathFormat class

- change 'has_extension' from a simple flag/bool to a field that
  contains the original filename extension
- rename 'keywords' to 'kwdict' and some other stuff as well
- inline 'adjust_path()'
- put enumeration index before filename extension (#306)
This commit is contained in:
Mike Fährmann
2019-08-12 21:40:37 +02:00
parent 423f68f585
commit 0bb873757a
10 changed files with 74 additions and 74 deletions

View File

@@ -33,7 +33,7 @@ class ClassifyPP(PostProcessor):
}
def prepare(self, pathfmt):
ext = pathfmt.keywords.get("extension")
ext = pathfmt.extension
if ext in self.mapping:
self._dir = pathfmt.realdirectory + os.sep + self.mapping[ext]