mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Skip "platformio" section from "run" process
This commit is contained in:
@ -25,7 +25,10 @@ def cli(environment, target, upload_port):
|
||||
raise UnknownEnvNames(", ".join(unknown))
|
||||
|
||||
for section in config.sections():
|
||||
if section[:4] != "env:":
|
||||
# skip main configuration section
|
||||
if section == "platformio":
|
||||
continue
|
||||
elif section[:4] != "env:":
|
||||
raise InvalidEnvName(section)
|
||||
|
||||
envname = section[4:]
|
||||
|
Reference in New Issue
Block a user