From c54f5de9ec23edd3a248a50c9672e40a07f18ab4 Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Thu, 19 Sep 2024 13:23:35 +0800 Subject: [PATCH] replace pyside2 import with qtpy import --- client/ayon_substancepainter/api/pipeline.py | 2 +- client/ayon_substancepainter/deploy/plugins/ayon_plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ayon_substancepainter/api/pipeline.py b/client/ayon_substancepainter/api/pipeline.py index 47090c4..33d4efa 100644 --- a/client/ayon_substancepainter/api/pipeline.py +++ b/client/ayon_substancepainter/api/pipeline.py @@ -162,7 +162,7 @@ def get_context_data(self): return metadata.get(OPENPYPE_METADATA_CONTEXT_KEY) or {} def _install_menu(self): - from PySide2 import QtWidgets + from qtpy import QtWidgets from ayon_core.tools.utils import host_tools parent = substance_painter.ui.get_main_window() diff --git a/client/ayon_substancepainter/deploy/plugins/ayon_plugin.py b/client/ayon_substancepainter/deploy/plugins/ayon_plugin.py index 85bb56d..61d2f70 100644 --- a/client/ayon_substancepainter/deploy/plugins/ayon_plugin.py +++ b/client/ayon_substancepainter/deploy/plugins/ayon_plugin.py @@ -9,7 +9,7 @@ def cleanup_ayon_qt_widgets(): """ # TODO: Create a more reliable method to close down all AYON Qt widgets - from PySide2 import QtWidgets + from qtpy import QtWidgets import substance_painter.ui # Kill AYON Qt widgets