The script that I'm working on is going to run for a long time. It's purpose is to identify and delete certain messages from a mailbox, then call imapclient.expunge() when complete. I have written a signal handler to trap SIGINT and ask the user what he wants to do next.
When I run the script in Wing IDE (6.0.12-1) the interrupt handler never gets called. I assume that Wing is hooking the SIGINT signal itself. Suggestions on how I can work around this (other than trapping some other signal)?
If you are pressing Ctrl-C in Wing that ends up not sending SIGINT but may copy or something else depending on keyboard personality. If you want to do this in Wing you probably need to configure the debugger to use an external console, which is done from the Debug I/O tool's Options menu. Then pressing Ctrl-C in the separate console window should work. Please let me know if that doesn't help.