IGN:Remove wmi initialization for the device scanner as wmi is no longer needed

This commit is contained in:
Kovid Goyal 2008-08-02 15:53:22 -07:00
parent 6d2c277d93
commit 313bc4d51b

View File

@ -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: