need exit from 'exec' execution

Anders Moe andermoe at online.no
Wed Jun 16 22:13:51 CEST 1999


Hi all -

My python-embedded app frequently makes use of  'exec <program-string>'.
I'd like
to create a Tk Button to halt this execution at some point, with the
option of aborting it. The only command that comes close is the exit
statement, but its to powerful - it
exits from the whole app, whereas I only wanted a local exit from the
exec's
program-string. Anyone know how to make this kind of local exit ? Thanks

in advance,


Anders Moe






More information about the Python-list mailing list