Script exit

Discussions on extending SharpCap using the built in Python scripting functionality
Post Reply
SteveJP
Posts: 27
Joined: Sat Apr 28, 2018 8:35 am
Location: Melbourne, Australia

Script exit

Post by SteveJP » Thu Dec 13, 2018 12:52 pm

Hi,
Does anyone know how to exit a script, other than by running off the end that doesn't cause an exception and SharpCap to exit. I''ve tried
quit()
exit()
sys.exit(0)
Thanks

User avatar
oopfan
Posts: 434
Joined: Sat Jul 08, 2017 2:37 pm
Location: New York
Contact:

Re: Script exit

Post by oopfan » Thu Dec 13, 2018 1:55 pm

Try 'return'

SteveJP
Posts: 27
Joined: Sat Apr 28, 2018 8:35 am
Location: Melbourne, Australia

Re: Script exit

Post by SteveJP » Thu Dec 13, 2018 9:23 pm

oopfan wrote:
Thu Dec 13, 2018 1:55 pm
Try 'return'
Brilliant. Why didn't I think of that ? Too obvious I guess!
Thanks oopfan

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests