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: | |
break | |
print line, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment