import carb
import omni.ext


class SplashCloseExtension(omni.ext.IExt):
    def on_startup(self):
        try:
            import omni.splash

            splash_iface = omni.splash.acquire_splash_screen_interface()
        except (ImportError, ModuleNotFoundError):
            splash_iface = None

        if not splash_iface:
            return

        splash_iface.close_all()

    def on_shutdown(self):
        pass
