Re: Self terminate a python program

2005-11-15 Thread Ben Finney
Ernesto <[EMAIL PROTECTED]> wrote: > how do you self terminate a python program from within the code? > something similar to exit(0) in C. Inspection and control of the Python runtime system is mostly within the 'sys' module. http://docs.python.org/lib/module-sys.html&g

Self terminate a python program

2005-11-15 Thread Ernesto
how do you self terminate a python program from within the code? something similar to exit(0) in C. I think the problem is that I'm using subprocess and popen to launch a '.exe' file and python is "waiting" on the .exe file to finish. since it never does, the python pr