mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:Remove wmi initialization for the device scanner as wmi is no longer needed
This commit is contained in:
parent
6d2c277d93
commit
313bc4d51b
@ -25,12 +25,7 @@ class DeviceDetector(QThread):
|
||||
self.keep_going = True
|
||||
|
||||
def run(self):
|
||||
_wmi = None
|
||||
if iswindows:
|
||||
import wmi, pythoncom
|
||||
pythoncom.CoInitialize()
|
||||
_wmi = wmi.WMI()
|
||||
scanner = DeviceScanner(_wmi)
|
||||
scanner = DeviceScanner()
|
||||
while self.keep_going:
|
||||
scanner.scan()
|
||||
for device in self.devices:
|
||||
|
Loading…
x
Reference in New Issue
Block a user