Skip to content

Build script apply_patches.py relies on global system Python #115

@dfry-lhzn

Description

@dfry-lhzn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions