remove startup.zsc when application exit

This commit is contained in:
Kayla Man 2024-03-03 19:07:16 +08:00
parent ed1b6365f7
commit f54e1fda59

View file

@ -740,4 +740,8 @@ class QtCommunicator(BaseCommunicator):
def _exit(self, *args, **kwargs):
super()._exit(*args, **kwargs)
emit_event("application.exit")
# remove zsc script of env variable
startup_zsc = os.path.join(
ZBRUSH_HOST_DIR, "startup", "startup.zsc")
os.remove(startup_zsc)
self.qt_app.exit(self.exit_code)