Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3963 from pypeclub/feature/maya_preffered_qt_bind…
Browse files Browse the repository at this point in the history
…ings

Maya: Define preffered Qt bindings for Qt.py and qtpy
  • Loading branch information
iLLiCiTiT authored Oct 12, 2022
2 parents 6b94435 + e34c2a7 commit 55c7286
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions openpype/hosts/maya/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ def add_implementation_envs(self, env, _app):

env["PYTHONPATH"] = os.pathsep.join(new_python_paths)

# Set default values if are not already set via settings
defaults = {
"OPENPYPE_LOG_NO_COLORS": "Yes"
# Set default environments
envs = {
"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):
env[key] = value
for key, value in envs.items():
env[key] = value

def get_launch_hook_paths(self, app):
if app.host_name != self.host_name:
Expand Down

0 comments on commit 55c7286

Please sign in to comment.