[FIX] hw_scanner: add missing import

`os.path.isdir` was not being imported
This commit is contained in:
mrshelly
2018-03-13 14:29:25 +01:00
committed by Adrian Torres
parent 0c5841dccf
commit 255f9ee330
+2 -2
View File
@@ -4,7 +4,7 @@
import logging
import time
from os import listdir
from os.path import join
from os.path import join, isdir
from Queue import Queue, Empty
from select import select
from threading import Thread, Lock
@@ -121,7 +121,7 @@ class Scanner(Thread):
if not evdev:
return []
if not os.path.isdir(self.input_dir):
if not isdir(self.input_dir):
return []
new_devices = [device for device in listdir(self.input_dir)