How to exit the main script in Python
Adonis
deltapigz at telocity.com
Fri Aug 16 15:33:22 EDT 2002
import sys
sys.exit()
hope this helps
Adonis
"Richard Kessler" <richardkessler at matteicos.com> wrote in message
news:3D5D4EA7.90209 at matteicos.com...
> I have a simple script that calls a bunch of functions to do things.
> Sometimes I need to simply exit the main script mid way but I can't find
> the syntax. 'Return' does not work outside of a function. 'Break' must
> be in a loop...etc.
>
> The VB counter part would be 'end'.
>
> Many thanks in advance.
>
> Richard
>
More information about the Python-list
mailing list