开发者

python how to force subprocess.call to not wait for the called command to complete

开发者 https://www.devze.com 2023-02-25 06:47 出处:网络
Im using subprocess.call to execute a bat file.subprocess.call is waiting for the bat file to complete before it continues.I want it to start the bat then continue on.Looking at the documents for subp

Im using subprocess.call to execute a bat file. subprocess.call is waiting for the bat file to complete before it continues. I want it to start the bat then continue on. Looking at the documents for subprocess开发者_如何转开发 it didnt look like it had an option to not wait for the command to complete.

Is there a way to do this or another option besides subprocess.call?


subprocess.Popen is what you are looking for!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号