diff --git a/aqt/qt.py b/aqt/qt.py index fabc13fa9..db64f23a2 100644 --- a/aqt/qt.py +++ b/aqt/qt.py @@ -4,6 +4,7 @@ # imports are all in this file to make moving to pyside easier in the future import sip, os +from anki.utils import isWin, isMac sip.setapi('QString', 2) sip.setapi('QVariant', 2) sip.setapi('QUrl', 2) @@ -36,3 +37,9 @@ qtminor = (QT_VERSION & 0x00ff00) >> 8 if qtmajor <= 4 and qtminor <= 6: import anki.template.furigana anki.template.furigana.ruby = r'\2\1' + +if isWin or isMac: + # we no longer use this, but want it included in the mac+win builds + # so we don't break add-ons that use it. any new add-ons should use + # the above variables instead + from PyQt4 import pyqtconfig