forked from platformio/platformio-core
Fix upload size checker
This commit is contained in:
@ -155,7 +155,7 @@ def CheckUploadSize(_, target, source, env): # pylint: disable=W0613,W0621
|
|||||||
print "Check program size..."
|
print "Check program size..."
|
||||||
sysenv = environ.copy()
|
sysenv = environ.copy()
|
||||||
sysenv['PATH'] = str(env['ENV']['PATH'])
|
sysenv['PATH'] = str(env['ENV']['PATH'])
|
||||||
cmd = [env.subst("$SIZETOOL"), "-B", str(source[0])]
|
cmd = [env.subst("$SIZETOOL"), "-B", str(target[0])]
|
||||||
result = util.exec_command(cmd, env=sysenv)
|
result = util.exec_command(cmd, env=sysenv)
|
||||||
if result['returncode'] != 0:
|
if result['returncode'] != 0:
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user