En Wed, 18 Jun 2008 08:09:58 -0300, A.T.Hofkamp <[EMAIL PROTECTED]>
escribió:
On 2008-06-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
picking up 0. On investigation it turned out that the exit value being
read is from python.exe process, not from the Python script. Is there
any way I can obtain the return value of a python script from a Java
This is not what I see happening here:
x.py:
import sys
sys.exit(138)
% python2.4 x.py
% echo $?
138
as you can see, the mechanism works at my Linux system.
It works fine on Windows too, the OS she appears to be using:
C:\TEMP>python x.py
C:\TEMP>echo %ERRORLEVEL%
138
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list