Fix #944534 (Will not connect to iTunes)

This commit is contained in:
Kovid Goyal 2012-03-04 11:14:46 +05:30
parent 8dae598304
commit 75777c1685

View File

@ -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()