mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-22 18:27:32 +00:00
14 lines
304 B
Python
14 lines
304 B
Python
#
|
|
# pioutil.py
|
|
#
|
|
|
|
# Make sure 'vscode init' is not the current command
|
|
def is_pio_build():
|
|
from SCons.Script import DefaultEnvironment
|
|
env = DefaultEnvironment()
|
|
return not env.IsIntegrationDump()
|
|
|
|
def get_pio_version():
|
|
from platformio import util
|
|
return util.pioversion_to_intstr()
|