Skip to content

Commit

Permalink
More flake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Sep 26, 2023
1 parent e8f89ad commit 709048c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion constructor/winexe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 709048c

Please sign in to comment.