[python-win32] Exiting an embedded script?

Karl Bellve Karl.Bellve@umassmed.edu
Mon, 07 May 2001 13:34:48 -0400


I am trying to exit an embedded script before the end of the script. If
I use sys.exit(), the parent application also exits. How can I
prematurely end the python script without ending the parent application.


I am using PyRun_SimpleFile()

I then check the return of that function but if the python script calls
sys.exit(), my program exits before it can do anything about the error.

Any ideas?



--Karl