subprocess.Popen.wait

Popen.wait()[source]

Wait for child process to terminate. Returns returncode attribute.