Firmware2/buildroot/share/PlatformIO/scripts/pioutil.py

14 lines
332 B
Python
Raw Normal View History

#
# pioutil.py
#
# Make sure 'vscode init' is not the current command
def is_pio_build():
from SCons.Script import DefaultEnvironment
env = DefaultEnvironment()
2022-12-04 03:19:18 +01:00
return not env.IsIntegrationDump() and not env.IsCleanTarget()
def get_pio_version():
from platformio import util
return util.pioversion_to_intstr()