2021-10-19 09:49:35 +02:00
|
|
|
#
|
2021-11-04 11:28:42 +01:00
|
|
|
# pioutil.py
|
2021-10-19 09:49:35 +02:00
|
|
|
#
|
|
|
|
|
2021-11-04 11:28:42 +01:00
|
|
|
# Make sure 'vscode init' is not the current command
|
|
|
|
def is_pio_build():
|
2022-08-19 18:00:52 +02:00
|
|
|
from SCons.Script import DefaultEnvironment
|
|
|
|
env = DefaultEnvironment()
|
|
|
|
return not env.IsIntegrationDump()
|
2022-07-12 20:02:54 +02:00
|
|
|
|
|
|
|
def get_pio_version():
|
2022-08-19 18:00:52 +02:00
|
|
|
from platformio import util
|
|
|
|
return util.pioversion_to_intstr()
|