The snippet below isn't Python... For Python you'd call:
import sys
sys.exit(0)
replacing "0" with whatever exit code you want to use.
Dave
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Thomas Gagne
Sent: Thursday, May 06, 2010 8:59 AM
To: Discussion of IronPython
Subject: Re: [IronPython] How can I exit from Python Script File?
My question is simpler, how do I exit a regular script?
If ARGV.length != 1
puts "usage:...."
Process.exit
end
I get an error calling Process.exit (private member) Process.Exit (method does
not exist) sys.Exit (undefined method 'sys' for main:Object)
How do I quit my script?
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com