I’m currently using subprocess.call() to invoke another program, but it blocks the executing thread until that program finishes. Is there a way to simply launch that program without waiting for return?
I’m currently using subprocess.call() to invoke another program, but it blocks the executing thread
Share
Use
subprocess.Popeninstead ofsubprocess.call:subprocess.callis a wrapper aroundsubprocess.Popenthat callscommunicateto wait for the process to terminate. See also What is the difference between subprocess.popen and subprocess.run.