diff options
| author | mrshelly <mrshelly@hotmail.com> | 2018-03-13 21:29:25 +0800 |
|---|---|---|
| committer | Adrian Torres <adt@odoo.com> | 2018-03-13 14:29:25 +0100 |
| commit | 255f9ee330c3f4da47c7747c9a2744354f574e98 (patch) | |
| tree | 02d82dab28757df43f4be3b18ccab6d32e2659bc | |
| parent | 0c5841dccf6d8afa266e1181364c410222acc140 (diff) | |
[FIX] hw_scanner: add missing import
`os.path.isdir` was not being imported
| -rw-r--r-- | addons/hw_scanner/controllers/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/hw_scanner/controllers/main.py b/addons/hw_scanner/controllers/main.py index fc2724dd31d..2ef49b7e6fd 100644 --- a/addons/hw_scanner/controllers/main.py +++ b/addons/hw_scanner/controllers/main.py @@ -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) |
