Re: abort python script from trace function

2011-07-26 Thread Dave Stark
Update: I ended getting the desired result by registering a new trace function. In my existing trace function I check the status of the abort button. When it's been triggered I register a NEW trace function using PyEval_SetTrace. I also use PyEval_SetProfile and point them both at my new tra

abort python script from trace function

2011-07-15 Thread Dave Stark
Hello, I have a multithreaded application that uses embedded python extensively. The main thread creates python objects that interface test equipment, and users execute their own python scripts that run in a separate thread. The users need to be able to pause/resume/abort a script that is curr