I want to automate the environment selection process in PlatformIO IDE.
My hope is to just click one of the default built targets (the ones that don’t mention an environment) and then my script would decide which environment would be the one actually used. The script would be included in the project.
Is there a way to hook into the PlatformIO IDE to do this?
In the Win10 environment, PlatformIO tends to be re-installed once or twice a week by the heavy users because Win10 just stops cooperating. I’m not fond of adding a custom button or menu item because it would have to be re-installed every time.
One of my ideas was to point the default environment to an environment that has an extra_script that does all the selection/updating but … I haven’t been able to find a method that results in the script being run early enough.