From a459cd750ddbb44f6cace9c00a42076d48953177 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 30 Apr 2024 16:15:41 +0200 Subject: [PATCH] fixup force posix path --- kiwixbuild/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiwixbuild/utils.py b/kiwixbuild/utils.py index d51ceb8..8c9ee76 100644 --- a/kiwixbuild/utils.py +++ b/kiwixbuild/utils.py @@ -328,7 +328,9 @@ def run_command(command, cwd, context, *, env=None, input=None, force_posix_path env = DefaultEnv() log = None if force_posix_path: - transform_path = lambda v: PurePosixPath(v) if isinstance(v, Path) else v + transform_path = lambda v: ( + str(PurePosixPath(v)).replace("C:/", "/c/") if isinstance(v, Path) else v + ) else: transform_path = lambda v: v command = [str(transform_path(v)) for v in command]