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

Aug 19, 2009
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
Thread starter Title Forum Replies Date
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
vefatica ON EXIT? Support 8
P exit /b in batch files Support 7
rps Reboot and exit reason Support 10
vefatica Exit code of a batch file? Support 4
H lua Causes Take Command Tab to Exit Support 5
Stefano Piccardi MKLNK exit status Support 9
ed neff How to? exit TCC/Take Command to a new directory Support 10
M Why is the exit code zero? Support 6
SeoulBigChris Save Environment (Tabs) on Exit? Support 3
Stefano Piccardi EXIT hangs Support 5
R TC 13 / Using TCDIALOG to exit commands Support 4
M Not real important but kind of annoying EXIT issue... Support 20
cgunhouse IDE Crashes on Exit Support 6
J tcmd.exe/tcc.exe appcrash on exit Support 4
Joe Caverly PYTHON from Microsoft Windows Store Support 2
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
N Python 3.8.2 Support in 26? Support 3
fpefpe Python dll error Support 3
MickeyF Why doesn't my python program get executed without specifying its path? Support 2
J Error running Python at command line Support 9
fpefpe Documentation Python Examples Support 14
fpefpe Documentation Python support Support 11
jbanaszczyk Non ActiveState Python/Perl Support 4
J Python: TCC command line parsing removes '=' equal sign characters Support 4
fpefpe WAD Python support does not process command line Support 14
fpefpe How to? Path(s) for Python Support 0
fpefpe Documentation Python Support 5
Stefano Piccardi How to? return values from @python Support 2
p.f.moore TCMD v10 - Python support - use version 2.6? Support 2
Joe Caverly SCRIPT and GetObject Support 3
vefatica SCRIPT ... TCC disappears Support 2
T How can I send a simple parameter to a script, in tc 25? Support 2
vefatica PSHELL: How pass arguments to script? Support 15
EDerH Powershell call from script Support 24
Joe Caverly .PS1 script does not work with PSHELL Support 11
MickeyF running program from script and (not) returning to script Support 12
T Fixed Echo randomly activated in script Support 4
fpefpe How to? script error Support 1
fpefpe How to? script error Support 0
vefatica @SCRIPT bug persists Support 4
D Catching the result of an evaluated script expression Support 0
Joe Caverly Non-conforming @Script Support 6
M The Matrix: a useless script ... Support 5
fpefpe How to? LUA script Support 0
T Change language in script Support 4
Steve Pitts Documentation Script errors invoking help Support 15
R How to? Launch and execute commands in tcmd.exe through MSBuild Script. Support 3
Joe Caverly @SCRIPT does not like all comments Support 2

Similar threads