mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-16 03:07:47 -06:00
Skip scripts during 'platformio init' (#21643)
This commit is contained in:
parent
b8cf818dac
commit
e8af38cc2d
5 changed files with 35 additions and 6 deletions
|
@ -2,6 +2,15 @@
|
|||
# common-dependencies.py
|
||||
# Convenience script to check dependencies and add libs and sources for Marlin Enabled Features
|
||||
#
|
||||
Import("env")
|
||||
|
||||
#print(env.Dump())
|
||||
|
||||
# Detect that 'vscode init' is running
|
||||
from SCons.Script import COMMAND_LINE_TARGETS
|
||||
if "idedata" in COMMAND_LINE_TARGETS:
|
||||
env.Exit(0)
|
||||
|
||||
import subprocess,os,re
|
||||
|
||||
PIO_VERSION_MIN = (5, 0, 3)
|
||||
|
@ -31,10 +40,6 @@ except:
|
|||
from platformio.package.meta import PackageSpec
|
||||
from platformio.project.config import ProjectConfig
|
||||
|
||||
Import("env")
|
||||
|
||||
#print(env.Dump())
|
||||
|
||||
try:
|
||||
verbose = int(env.GetProjectOption('custom_verbose'))
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue