Fix bug with "env_default" when "pio run -e" is used

This commit is contained in:
Ivan Kravets committed 2016-05-04 15:10:08 +03:00
1 parent eee6685c59
commit 3edc336f62
5 files changed
+12 -6

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@
import sys
VERSION = (2, 9, 1)
VERSION = (2, 9, "2.dev0")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"
+2 -1
View File
@@ -81,7 +81,8 @@ def cli(ctx, environment, target, upload_port, # pylint: disable=R0913,R0914
envname = section[4:]
if ((environment and envname not in environment) or
(env_default and envname not in env_default)):
(not environment and env_default and
envname not in env_default)):
# echo("Skipped %s environment" % style(envname, fg="yellow"))
continue