Fix issue with "PATH" auto-configuring for upload tools

This commit is contained in:
Ivan Kravets
2016-09-29 18:58:35 +03:00
parent dc874ebf49
commit 71d74f40b0
3 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@ PlatformIO 3.0
* Improved detecting of ARM mbed media disk for uploading
* Improved Project Generator for CLion IDE when source folder contains nested items
* Fixed issue with ``PATH`` auto-configuring for upload tools
-------

View File

@ -14,7 +14,7 @@
import sys
VERSION = (3, 1, "1a1")
VERSION = (3, 1, "1a2")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@ -31,7 +31,7 @@ def initPioPlatform(name):
def PioPlatform(env):
variables = {}
for key in ("board", "pioframework"):
if key not in env:
if key.upper() not in env:
continue
variables[key] = env[key.upper()]
p = initPioPlatform(env['PLATFORM_MANIFEST'])