muele-marlin/buildroot/share/PlatformIO/scripts/pioutil.py

14 lines
289 B
Python
Raw Normal View History

#
# pioutil.py
#
# Make sure 'vscode init' is not the current command
def is_pio_build():
2022-07-29 11:12:38 +00:00
from SCons.Script import DefaultEnvironment
env = DefaultEnvironment()
return not env.IsIntegrationDump()
def get_pio_version():
from platformio import util
return util.pioversion_to_intstr()