Apparently some Python versions didn't like the backslash in the f-string.
This commit is contained in:
parent
d8e58f99d5
commit
cf2ba0c45e
@ -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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user