开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜