Hi all,
I'm trying to embed Python in my C program...
So far I have a very basic set of modules /methods & types
My problem is I need a exit routine of some sort that the Python scripts can call to terminate..
calling sys.exit() from a python script terminates my app completely, I need a solution for just stopping execution of the script.
For example my app exports a method : "confirm" in module "gui" which pops up
a confirmation dialog:
if gui.confirm("Continue Yes/No") == gui.CONFIRM_NO:
sys.exit()
Here's where I need an alterantive, I should have a call like "gui.exit()" to stop script execution.
Anyone, any ideas / clues how to implement it??
Thanks a lot!