Fix upload size checker

This commit is contained in:
Ivan Kravets
2016-06-15 13:25:35 +03:00
parent 4383f81c0f
commit f5727af40e

View File

@ -157,7 +157,7 @@ def CheckUploadSize(_, target, source, env): # pylint: disable=W0613,W0621
print "Check program size..."
sysenv = environ.copy()
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)
if result['returncode'] != 0:
return