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