from twisted.internet import defer, reactor
def getProcessOutput(executable, args=(),
env={}, path='.'):
d = defer.Deferred()
p = _BackRelay(d)
reactor.spawnProcess(p, executable, args,
env, path)
return d