Script exit

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

Script exit

#1

Post by SteveJP »

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: 1320
Joined: Sat Jul 08, 2017 2:37 pm
Location: New York
Contact:

Re: Script exit

#2

Post by oopfan »

Try 'return'
SteveJP
Posts: 38
Joined: Sat Apr 28, 2018 8:35 am
Location: Melbourne, Australia

Re: Script exit

#3

Post by SteveJP »

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