From 926d407f303b422f088ab1a8f40ae507eb39ab14 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 9 Sep 2012 08:20:11 +0900 Subject: [PATCH] move hook import to global scope for issue 3289 --- aqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/__init__.py b/aqt/__init__.py index e3ba6a8fe..5732384fe 100644 --- a/aqt/__init__.py +++ b/aqt/__init__.py @@ -6,6 +6,7 @@ from aqt.qt import * import locale, gettext import anki.lang from anki.consts import HELP_SITE as appHelpSite +from anki.hooks import runHook appVersion="2.0-rc4" appWebsite="http://ankisrs.net/" @@ -160,7 +161,6 @@ class AnkiApp(QApplication): ################################################## def event(self, evt): - from anki.hooks import runHook if evt.type() == QEvent.FileOpen: self.emit(SIGNAL("appMsg"), evt.file() or "raise") return True