1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-01 15:53:05 +00:00
MarlinFirmware/buildroot/share/PlatformIO/scripts/pioutil.py

15 lines
377 B
Python
Raw Normal View History

#
# pioutil.py
#
# Make sure 'vscode init' is not the current command
def is_pio_build():
2023-03-26 01:40:44 +00:00
from SCons.Script import DefaultEnvironment
env = DefaultEnvironment()
2023-03-26 01:40:50 +00:00
if "IsCleanTarget" in dir(env) and env.IsCleanTarget(): return False
2023-03-26 01:40:44 +00:00
return not env.IsIntegrationDump()
2022-07-29 11:12:38 +00:00
def get_pio_version():
2023-03-26 01:40:44 +00:00
from platformio import util
return util.pioversion_to_intstr()