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
|
self.keep_going = True
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
_wmi = None
|
scanner = DeviceScanner()
|
||||||
if iswindows:
|
|
||||||
import wmi, pythoncom
|
|
||||||
pythoncom.CoInitialize()
|
|
||||||
_wmi = wmi.WMI()
|
|
||||||
scanner = DeviceScanner(_wmi)
|
|
||||||
while self.keep_going:
|
while self.keep_going:
|
||||||
scanner.scan()
|
scanner.scan()
|
||||||
for device in self.devices:
|
for device in self.devices:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user