[postprocessor:metadata] call expand_path() on custom paths

(#1299)
This commit is contained in:
Mike Fährmann
2021-02-27 17:19:29 +01:00
parent fe2ec9cf68
commit 1bd3d7cfb0

View File

@@ -39,7 +39,7 @@ class MetadataPP(PostProcessor):
if directory: if directory:
self._directory = self._directory_custom self._directory = self._directory_custom
sep = os.sep + (os.altsep or "") sep = os.sep + (os.altsep or "")
self._metadir = directory.rstrip(sep) + os.sep self._metadir = util.expand_path(directory).rstrip(sep) + os.sep
filename = options.get("filename") filename = options.get("filename")
extfmt = options.get("extension-format") extfmt = options.get("extension-format")