Fix issue with `src_filter` option for Windows OS // Resolve #652

This commit is contained in:
Ivan Kravets
2016-05-10 15:36:00 +03:00
parent 69effbfedb
commit 056cc08d68
4 changed files with 39 additions and 34 deletions

View File

@@ -164,14 +164,14 @@ class EnvironmentProcessor(object):
return result
def _get_build_variables(self):
variables = ["PIOENV=" + self.name]
variables = {"pioenv": self.name}
if self.upload_port:
variables.append("UPLOAD_PORT=%s" % self.upload_port)
variables['upload_port'] = self.upload_port
for k, v in self.options.items():
k = k.upper()
if k == "TARGETS" or (k == "UPLOAD_PORT" and self.upload_port):
k = k.lower()
if k == "targets" or (k == "upload_port" and self.upload_port):
continue
variables.append("%s=%s" % (k, v))
variables[k] = v
return variables
def _get_build_targets(self):