Isotropix Forums

Halt execution of python script without killing clarisse?

Clarisse Scripting related topics

Halt execution of python script without killing clarisse?

Unread postby bvz2000 » Mon Sep 02, 2019 4:52 am

Is there a good way to stop the execution of a python script called from the shelf without killing Clarisse?

sys.exit() and quit() both kill Clarisse.
bvz2000
 
Posts: 427
Joined: Thu Nov 13, 2014 6:05 pm

Re: Halt execution of python script without killing clarisse

Unread postby dcourtois » Mon Sep 02, 2019 8:58 am

A bit hacky, but you can embed your whole script content in a single function and use `return`.
User avatar
dcourtois
 
Posts: 100
Joined: Tue Jul 25, 2017 3:15 pm

Re: Halt execution of python script without killing clarisse

Unread postby bvz2000 » Mon Sep 02, 2019 8:54 pm

That works just fine. Thanks!
bvz2000
 
Posts: 427
Joined: Thu Nov 13, 2014 6:05 pm


Return to Scripting