From: Daan De Meyer Date: Thu, 9 Feb 2023 14:03:23 +0000 (+0100) Subject: Fix path expansion X-Git-Tag: v15~339^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=534f07bac194d920ee4d5f2d2c57dbb427722ea2;p=thirdparty%2Fmkosi.git Fix path expansion --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 82c80b35d..3c05ba3f7 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -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