From 6a775f39511520274c4d6f216166dd6fa8891ccd Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 4 Oct 2014 18:53:59 +0300 Subject: [PATCH] Skip "platformio" section from "run" process --- platformio/commands/run.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platformio/commands/run.py b/platformio/commands/run.py index 5e989c17..4ed95bef 100644 --- a/platformio/commands/run.py +++ b/platformio/commands/run.py @@ -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:]