From 709048cb596e4b8412c900840cbc36062cf898a8 Mon Sep 17 00:00:00 2001 From: jlstevens Date: Tue, 26 Sep 2023 15:43:01 +0200 Subject: [PATCH] More flake fixes --- constructor/winexe.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/constructor/winexe.py b/constructor/winexe.py index fb70b196..76ac43ab 100644 --- a/constructor/winexe.py +++ b/constructor/winexe.py @@ -86,6 +86,7 @@ def insert_tempfiles_commands(paths: os.PathLike) -> List[str]: lines.append(f"File {path}") return lines + def setup_script_env_variables(info) -> List[str]: """Helper function to insert extra environment variables into nsis template. @@ -98,10 +99,11 @@ def setup_script_env_variables(info) -> List[str]: lines = [] for name, value in info.get('script_env_variables', {}).items(): lines.append( - f"""System::Call 'kernel32::SetEnvironmentVariable(t,t)i("{name}", {str_esc(value)}).r0'""" + f"""System::Call 'kernel32::SetEnvironmentVariable(t,t)i("{name}", {str_esc(value)}).r0'""" ) return lines + def custom_nsi_insert_from_file(filepath: os.PathLike) -> str: """Insert NSI script commands from file.