Sys module is not working with Open Tap

sys.exit() is not working in Open Tap while testing a plugin. Please help me on this issue.

Hi Sriram, and welcome to the forum.

This may be something that occurs if Python is running in an “embedded” context.

I am wondering, what are you expecting to happen when you call sys.exit? Maybe something else would be better for you.

Hi,
Basically i am trying to exit/restart the python terminal that open tap is using. It is a need for me to break code by sys.exit while running.
So, please let me know if there is any alternative for sys.exit.

Thanks.

I am still not exactly sure what you want to achieve, but if you want to break execution, you should be able to just throw an exception. e.g

raise ValueError()