]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix path expansion
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 9 Feb 2023 14:03:23 +0000 (15:03 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 9 Feb 2023 14:03:23 +0000 (15:03 +0100)
mkosi/__init__.py

index 82c80b35d551787533579c2e07f86ce8cdad484e..3c05ba3f7116d99d6fb0e4dd96a14e83eb90b48a 100644 (file)
@@ -4064,7 +4064,7 @@ def expand_paths(paths: Sequence[str]) -> list[Path]:
     expanded = []
     for path in paths:
         try:
-            expanded += [Path(string.Template(path).substitute(environ))]
+            expanded += [Path(string.Template(str(path)).substitute(environ))]
         except KeyError:
             # Skip path if it uses a variable not defined.
             pass