Mike Driscoll wrote:
On Jan 14, 9:02 pm, Astan Chee <[EMAIL PROTECTED]> wrote:
Hi,
I have a python module that keeps on crashing with various windows
errors (not BSOD but the less lethal windows XP popup ones). Now these
are intentional and rather sporadic so I cant really solve it by
attempting to fix the crash; rather what Im trying to do is make another
module outside it that restarts this module every time it crashes. Is
this possible?
If you're not going to catch the error that is causing the crash, then
I think your only option is to restart your application with an
external program.
My understanding of using an external application to do this is to first
create my module as an executable using py2exe. Then I have another
python script that runs this module like this
while (1):
os.popen("program_module.exe")
and make this other python script into another executable and execute
this one. If Im not mistaken, when the python program crashes, the
thread is killed. is this correct or how should I do it?
Thanks again.
Astan
--
http://mail.python.org/mailman/listinfo/python-list