Getting Python exit code when calling Python script from Java program
mattheww at chiark.greenend.org.uk
Wed Jun 18 18:50:04 CEST 2008
In article <mailman.590.1213782173.1044.python-list at python.org>,
> I tried using the sys.exit() method in my script and passed non -zero
> values. However the value wasn't picked up the by Java
> Process.exitValue() method - it kept picking up 0. On investigation
> it turned out that the exit value being read is from python.exe
> process, not from the Python script.
I don't believe there is any such distinction. The exit status of
python.exe is the exit status determined by the script.
More information about the Python-list