From f54e1fda595deb1f45ffa0a14d1cd2cc6fb9867c Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Sun, 3 Mar 2024 19:07:16 +0800 Subject: [PATCH] remove startup.zsc when application exit --- client/ayon_core/hosts/zbrush/api/communication_server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/ayon_core/hosts/zbrush/api/communication_server.py b/client/ayon_core/hosts/zbrush/api/communication_server.py index 1a6719c0f9..bb2cee13bb 100644 --- a/client/ayon_core/hosts/zbrush/api/communication_server.py +++ b/client/ayon_core/hosts/zbrush/api/communication_server.py @@ -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)