in BuildAll.py [0:0]
def Execute(self):
batchFileName = "scBuild."
if "win" == self.hostPlatform:
batchFileName += "bat"
else:
batchFileName += "sh"
batchFile = open(batchFileName, "w")
batchFile.writelines([cmd_line + "\n" for cmd_line in self.commands])
batchFile.close()
if "win" == self.hostPlatform:
retCode = subprocess.call(batchFileName, shell = True)
else:
subprocess.call("chmod 777 " + batchFileName, shell = True)
retCode = subprocess.call("./" + batchFileName, shell = True)
os.remove(batchFileName)
return retCode