subprocess.wait() not waiting for Popen process to finish (when using threads)?

You could also use check_call() instead of Popen. check_call() waits for the command to finish, even when shell=True and then returns the exit code of the job.

Leave a Comment