Bugfix for bare {filepath} template

This commit is contained in:
Rhet Turnbull
2022-10-13 21:00:49 -07:00
parent c75d357249
commit 0ba8bc3eb9

View File

@@ -1516,7 +1516,7 @@ def _get_pathlib_value(field, value, quote):
parts = field.split(".") parts = field.split(".")
if len(parts) == 1: if len(parts) == 1:
return shlex.quote(value) if quote else value return shlex.quote(str(value)) if quote else str(value)
path = pathlib.Path(value) path = pathlib.Path(value)
for attribute in parts[1:]: for attribute in parts[1:]: