When building LoggerFirmware on Windows, PlatformIO executes apply_patches.py. This script currently spawns a shell and explicitly invokes python, which expects the system's global $PATH to map to a compatible Python interpreter.
On some systems (particularly Windows), this can invoke the wrong interpreter, trigger the Microsoft Store 'Install Python' prompt, or error out.
Proposed Fix
By swapping the hardcoded python string for Python's own standard sys.executable, the script will dynamically reference the exact Python interpreter instance that PlatformIO is already running inside. This helps improve cross-platform robustness.
When building LoggerFirmware on Windows, PlatformIO executes apply_patches.py. This script currently spawns a shell and explicitly invokes python, which expects the system's global $PATH to map to a compatible Python interpreter.
On some systems (particularly Windows), this can invoke the wrong interpreter, trigger the Microsoft Store 'Install Python' prompt, or error out.
Proposed Fix
By swapping the hardcoded python string for Python's own standard sys.executable, the script will dynamically reference the exact Python interpreter instance that PlatformIO is already running inside. This helps improve cross-platform robustness.