def executeCommand(project, maker, command, out):
    if project.showCommands:
        out << CodeBlock << command << Close << Flush

    try:        
        child = devon.spawn.Spawn(command)
    except:
        raise Exception("Unable to launch executable '%s'" % command.split(" ")[0])
        
    text = ""
    while child.isalive():
        text += child.read()

    text += child.read()
    
    if text:
        maker.printResult(project, out, text)
    
    return child.exitStatus
dataset/ETHPy150Open joehewitt/devon/devon/make.py/executeCommand/original