简体   繁体   中英

Run executable from python such that it crashes without GUI or asking for user input

I have a python program that runs a console executable in Windows using subprocess.Popen.

It works well, except that if the executable crashes, it shows a message box indicating the error and the user must click 'OK' for the python script to continue.

How can I run the executable from python such that it won't open a message box if it crashes?

Using my facilities for psychic debugging, I believe this is the problem you're having .

In short: you'll need to disable crash notification in Windows to resolve the dialog box that's appearing when your subprocess crashes. Though if this is required, it's more desirable to figure out why your subprocess is crashing in the first place.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM