I am calling the executable from python script using sub process call. these are the following code I have used:

```
try:
    p = subprocess.Popen([abc.exe], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()

except Exception as e:
    print str(e)

```

from abc.exe, I have return 1 in failure case and return 0 for success case. But I don't know how to check the return value in python script.

thanks,