Show More
@@ -649,7 +649,10 def system(cmd, environ={}, cwd=None, on | |||||
649 | proc = subprocess.Popen(cmd, shell=True, close_fds=closefds, |
|
649 | proc = subprocess.Popen(cmd, shell=True, close_fds=closefds, | |
650 | env=env, cwd=cwd, stdout=subprocess.PIPE, |
|
650 | env=env, cwd=cwd, stdout=subprocess.PIPE, | |
651 | stderr=subprocess.STDOUT) |
|
651 | stderr=subprocess.STDOUT) | |
652 |
|
|
652 | while True: | |
|
653 | line = proc.stdout.readline() | |||
|
654 | if not line: | |||
|
655 | break | |||
653 | out.write(line) |
|
656 | out.write(line) | |
654 | proc.wait() |
|
657 | proc.wait() | |
655 | rc = proc.returncode |
|
658 | rc = proc.returncode |
General Comments 0
You need to be logged in to leave comments.
Login now