mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-01 23:58:33 +00:00
959be66cc2
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
16 lines
370 B
Python
16 lines
370 B
Python
#
|
|
# pioutil.py
|
|
#
|
|
|
|
from SCons.Script import DefaultEnvironment
|
|
env = DefaultEnvironment()
|
|
|
|
# Make sure 'vscode init' is not the current command
|
|
def is_pio_build():
|
|
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()
|