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