Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

exit(1) in a python script exits console, by design or bug?

Aug
2
0
This might not be feasible to fix, but it was still not what I expected.

I have a script that is used in our continuous integration build process, and it fails with an exit code higher than 0 if something is wrong.

When working on this script I experienced that whenever the script signalled something wrong, I lost my console window. I finally tracked it down to having turned on Python integration in Take Command and thus the "exit(1)" command in Python exited the console as well.

This is not what I expected would happen, but perhaps it is by design?
 

Similar threads

Replies
5
Views
2K
Back
Top