In article <[EMAIL PROTECTED]>,
volcano <[EMAIL PROTECTED]> wrote:
                        .
                        .
                        .
>But here is another question for gurus: sometimes my script fails, and
>I cannot figure out why. OK, I can - especially since I terminate it
>with "sys.exit()", but I want my app to know too.
>"GetLastError" returns 0 - for the obvious reason that this is the
>value Python interpreter returns with. But how can I get the script
>return value?
>

Your question confuses me.  Do you realize Python can exit with

   sys.exit(0)
or
   sys.exit(1)

for example, to distinguish differenet exit conditions?  When 
you do these, GetLastError() will NOT always yield 0.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to