Close Rhino application from Python

Hello!
I need close Rhino from python script.
I use rs.Exit(), but if I did changes rhino ask me about saving this changes, and Rhino doesn’t exit automatically.
How can I close this popup windows with answer “No” from python script.

Maybe Exit() has arguments or something like this!
or
Maybe better use rs.Command(). (but I don’t know how write command correctly(( )
Thank You!

Hello,

This seems to work:

import rhinoscriptsyntax as rs

rs.DocumentModified(False)
rs.Exit()

1 Like

Cool!)
Thank you, it’s work!