Re: How to Force exiting from program/script

2009-07-16 Thread Piet van Oostrum
> Alex (A) a écrit: >A> hi at all, >A> I have made a script with a while loop and I want that after 30 >A> seconds the program stop and exit . But the code like this doesn't >A> run: >A> In the Console I can see work so that function is correctly called... >A> #Function to exit >A> def exit

Re: How to Force exiting from program/script

2009-07-15 Thread Diez B. Roggisch
Alex schrieb: hi at all, I have made a script with a while loop and I want that after 30 seconds the program stop and exit . But the code like this doesn't run: In the Console I can see work so that function is correctly called... #Function to exit def exit(): print "work" raise SystemE

How to Force exiting from program/script

2009-07-15 Thread Alex
hi at all, I have made a script with a while loop and I want that after 30 seconds the program stop and exit . But the code like this doesn't run: In the Console I can see work so that function is correctly called... #Function to exit def exit(): print "work" raise SystemExit() t = thread