[FIX] hw_scanner: add missing import
`os.path.isdir` was not being imported
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user