From f6407b8d4c6f588dc02c192bc28491781c538e1d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 19 Jan 2011 07:18:43 +0900 Subject: [PATCH] make sure ctypes packages are included --- ankiqt/ui/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 7c626e9a1..7342e345b 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -38,6 +38,9 @@ class AnkiQt(QMainWindow): self.reviewingStarted = False if sys.platform.startswith("darwin"): qt_mac_set_menubar_icons(False) + elif sys.platform.startswith("win32"): + # make sure they're picked up on bundle + from ctypes import windll, wintypes ankiqt.mw = self self.app = app self.config = config