From 75777c168549c44006afc127b1654b43355aa0b4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 4 Mar 2012 11:14:46 +0530 Subject: [PATCH] Fix #944534 (Will not connect to iTunes) --- src/calibre/devices/apple/driver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/apple/driver.py b/src/calibre/devices/apple/driver.py index d552239853..09d0466f40 100644 --- a/src/calibre/devices/apple/driver.py +++ b/src/calibre/devices/apple/driver.py @@ -594,8 +594,9 @@ class ITUNES(DriverBase): iPad, as we have to return True if we can handle device interaction, or False if not. ''' + import pythoncom + if self.iTunes: - import pythoncom # We've previously run, so the user probably ejected the device try: pythoncom.CoInitialize()