2021-10-19 02:49:35 -05:00
|
|
|
#
|
2021-11-04 05:28:42 -05:00
|
|
|
# pioutil.py
|
2021-10-19 02:49:35 -05:00
|
|
|
#
|
|
|
|
|
2021-11-04 05:28:42 -05:00
|
|
|
# Make sure 'vscode init' is not the current command
|
|
|
|
def is_pio_build():
|
2022-07-12 13:02:54 -05: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()
|