Apparently some Python versions didn't like the backslash in the f-string.

This commit is contained in:
Patrick 2024-08-03 20:24:45 +02:00
parent d8e58f99d5
commit cf2ba0c45e

View File

@ -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']