From fdfac00a5e1c62f269653b88bc2586336b396b8b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 18 Apr 2009 23:44:21 +0900 Subject: [PATCH] fix runhook reference --- ankiqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/__init__.py b/ankiqt/__init__.py index df17ca402..8ee7ef906 100644 --- a/ankiqt/__init__.py +++ b/ankiqt/__init__.py @@ -67,6 +67,7 @@ color: #13486c; class AnkiApp(QApplication): def event(self, evt): + from anki.hooks import runHook if evt.type() == QEvent.FileOpen: runHook("macLoadEvent", unicode(evt.file())) return True @@ -74,7 +75,6 @@ class AnkiApp(QApplication): def run(): import config - from anki.hooks import runHook # home on win32 is broken if sys.platform == "win32":