Merge upstream changes from Marlin 2.1.1
This commit is contained in:
13
buildroot/share/PlatformIO/scripts/pioutil.py
Normal file
13
buildroot/share/PlatformIO/scripts/pioutil.py
Normal file
@@ -0,0 +1,13 @@
|
||||
#
|
||||
# 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()
|
Reference in New Issue
Block a user