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
2023-04-30 18:19:57 -05:00

15 lines
377 B
Python

#
# pioutil.py
#
# Make sure 'vscode init' is not the current command
def is_pio_build():
from SCons.Script import DefaultEnvironment
env = DefaultEnvironment()
if "IsCleanTarget" in dir(env) and env.IsCleanTarget(): return False
return not env.IsIntegrationDump()
def get_pio_version():
from platformio import util
return util.pioversion_to_intstr()