mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
minor update
This commit is contained in:
parent
1243848963
commit
1136c664f1
1 changed files with 7 additions and 5 deletions
|
@ -23,12 +23,14 @@ def execute(command):
|
|||
process = subprocess.Popen(command, stdout=subprocess.PIPE)
|
||||
while True:
|
||||
output = process.stdout.readline()
|
||||
if output == '' and process.poll() is not None:
|
||||
break
|
||||
if output:
|
||||
print output.strip()
|
||||
sys.stdout.flush()
|
||||
return process.returncode
|
||||
line = output.decode('ascii').rstrip()
|
||||
print(">>> " + line)
|
||||
process.stdout.flush()
|
||||
ret = process.poll()
|
||||
if ret is not None:
|
||||
return ret
|
||||
return -1
|
||||
|
||||
def main(argv):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue