add preffered qt bindings to Qt.py and qtpy

This commit is contained in:
Jakub Trllo 2022-10-11 17:39:04 +02:00
parent 04f3bc89ff
commit bca0c2c810

View file

@ -30,7 +30,11 @@ class MayaAddon(OpenPypeModule, IHostAddon):
# Set default values if are not already set via settings
defaults = {
"OPENPYPE_LOG_NO_COLORS": "Yes"
"OPENPYPE_LOG_NO_COLORS": "Yes",
# For python module 'qtpy'
"QT_API": "PySide2",
# For python module 'Qt'
"QT_PREFERRED_BINDING": "PySide2"
}
for key, value in defaults.items():
if not env.get(key):