From 8fd4ae7a8922b0a99daf292e7d4b7e14f31d953b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 10 Jun 2013 15:03:19 +0900 Subject: [PATCH] include pyqtconfig until add-ons have a chance to update --- aqt/qt.py | 7 +++++++ 1 file changed, 7 insertions(+) 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