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