Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
import subprocess
p = subprocess.Popen(['make'], shell=False, stdout=subprocess.PIPE,
cwd='/home/yurenju/src/gaia', stderr=subprocess.STDOUT,
env={'DESKTOP': '0', 'DESKTOP_SHIMS': '1', 'DEBUG': '1', 'NOFTU': '1'})
loop = True
while loop:
if p.poll() is not None:
loop = False
while True:
line = p.stdout.readline()
if not line:
print line,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment