How can I return a non-zero status result from a python script?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Dec 15 22:35:05 CET 2008


On Mon, 15 Dec 2008 13:12:08 -0800, silverburgh.meryl at gmail.com wrote:

> How can I return a non-zero status result from the script? Just do a
> return 1? at the end?

``sys.exit(42)``

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list