I am working with code that my client insists cannot be changed. It needs to be called using a python command like subprocess.call() ... The code includes a use of the exit() function. When exiting, the exit() function contains data as a parameter:
exit(data)
How can I capture the data parameter that the script is using when calling exit() without modifying the code to use a return or anything like that?