From cf2ba0c45e9d6684691ca64938a79ddcef0d485b Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sat, 3 Aug 2024 20:24:45 +0200 Subject: [PATCH] Apparently some Python versions didn't like the backslash in the f-string. --- recipes/CMakeProject/recipe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/CMakeProject/recipe.py b/recipes/CMakeProject/recipe.py index 2a09d6f..936e7c6 100644 --- a/recipes/CMakeProject/recipe.py +++ b/recipes/CMakeProject/recipe.py @@ -6,7 +6,8 @@ from SCons.Script import * _BUILT_STAMPFILE = '.spp_built' def cmd_quote(s: str) -> str: - return f'"{s.replace("\\", "\\\\")}"' + escaped = s.replace('\\', '\\\\') + return f'"{escaped}"' def cook(env: Environment, project_root: str, generate_args: 'list[str]' = [], build_args : 'list[str]' = [], install_args : 'list[str]' = []) -> dict: config = env['BUILD_TYPE']