ensure PathFormat.directory ends with a path separator

... plus some other small optimizations
This commit is contained in:
Mike Fährmann
2019-08-20 00:25:13 +02:00
parent ebabc5caf1
commit 3284c62f22
2 changed files with 15 additions and 17 deletions

View File

@@ -47,10 +47,9 @@ class ClassifyPP(PostProcessor):
@staticmethod
def _build_paths(pathfmt, extra):
path = pathfmt.realdirectory + os.sep + extra
path = pathfmt.realdirectory + extra
pathfmt.realpath = path + os.sep + pathfmt.filename
pathfmt.path = (pathfmt.directory + os.sep +
extra + os.sep + pathfmt.filename)
pathfmt.path = pathfmt.directory + extra + os.sep + pathfmt.filename
return path