def run_app(self): """ Callback from when the menu is clicked. """ print "Reloading Tools Shotgun...." restart() print "Reload done!"
def reload_command(self, *args, **kwargs): """ We inform the Harmony engine that we are about to restart the engine, so it can act accordingly. """ if self._dcc_app: self._dcc_app.broadcast_event("ENGINE_RESTART") from tank.platform import restart restart(*args, **kwargs)
def reload(self): """ Reload templates and restart engine. """ restart()
def _reload_sg(self): """ Reload Shotgun scripts """ restart()