Skip to content

Commit 4585cc0

Browse files
committed
fix drag and drop installer for Maya 2025 #409
1 parent c81fff5 commit 4585cc0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

drag_n_drop_install.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77

88
try:
99
from maya.app.startup import basic
10-
from PySide2 import QtWidgets, QtCore, QtGui
11-
from shiboken2 import wrapInstance
10+
try:
11+
from PySide2 import QtWidgets, QtCore, QtGui
12+
from shiboken2 import wrapInstance
13+
except ModuleNotFoundError:
14+
from PySide6 import QtWidgets, QtCore, QtGui
15+
from shiboken6 import wrapInstance
1216
import maya.OpenMayaUI as OpenMayaUI
1317
import maya.cmds as cmds
1418
import maya.api.OpenMaya as om
@@ -19,7 +23,7 @@
1923

2024
# -- constants
2125
TITLE = "Install mGear"
22-
VERSION = 1.2
26+
VERSION = 1.3
2327
MGEAR_MOD_PATH = "MGEAR_MODULE_PATH"
2428
MAYA_MOD_PATH = "MAYA_MODULE_PATH"
2529
PLUGINS = ["mgear_solvers.mll", "weightDriver.mll"]

0 commit comments

Comments
 (0)