From 7b2ac4a16c40f0e62c606eb1c1eed7341b149ad5 Mon Sep 17 00:00:00 2001 From: dfry-lhzn Date: Tue, 19 May 2026 18:07:06 -0400 Subject: [PATCH] fix(build): use sys.executable for cross-platform patch application --- LoggerFirmware/apply_patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LoggerFirmware/apply_patches.py b/LoggerFirmware/apply_patches.py index eeffd17b..9dc873d9 100644 --- a/LoggerFirmware/apply_patches.py +++ b/LoggerFirmware/apply_patches.py @@ -20,7 +20,7 @@ for patch_file, original_file in patches.items(): print(f"\tApplying patch '{patch_file}' to file '{original_file}'") assert original_file.is_file() and patch_file.is_file() - res = env.Execute(f"python patch.py -d {str(original_file.parent)} {str(patch_file)}") + res = env.Execute(f'"{sys.executable}" patch.py -d {str(original_file.parent)} {str(patch_file)}') if res == 0: print(f"\t\tSuccessfully applied patch '{patch_file}'") files_were_patched = True