Skip to content

Commit

Permalink
With the introduction of tk-core v0.19.9, PySide2Patcher is now check…
Browse files Browse the repository at this point in the history
…ing the version of PySide2 to tweak some settings. Since PyQt5.__version_info__ is not defined, we need to patch it to make things work again.
  • Loading branch information
diegogarciahuerta committed May 21, 2020
1 parent efd1b2d commit 23f1777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def patch(cls, QtCore, QtGui, QtWidgets, PyQt5):
# Add this version info otherwise it breaks since tk_core v0.19.9
# PySide2Patcher is now checking the version of PySide2 in a way
# that PyQt5 does not like: __version_info__ is not defined in PyQt5
version = list(map(int, QtCore.PYQT_VERSION_STR.split(".")))
version = list(map(int, QtCore.PYQT_VERSION_STR.split(".")))
PyQt5.__version_info__ = version

QtCore, QtGui = PySide2Patcher.patch(QtCore, QtGui, QtWidgets, PyQt5)
Expand Down

0 comments on commit 23f1777

Please sign in to comment.