1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Support' started by lassevk, Feb 21, 2011.

  1. lassevk

    Joined:
    Aug 19, 2009
    Messages:
    2
    Likes Received:
    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?
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,854
    Likes Received:
    83
    WAD -- when you're using the embedded Python, it is running as a dll in the TCC process. So if you "exit(1)", you're exiting TCC.
     

Share This Page