Skip to content

Commit b7ed55a

Browse files
committed
actually check for module existence in manager
1 parent 481ace6 commit b7ed55a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aw_qt/manager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ def __init__(self, testing: bool=False) -> None:
138138
# "aw-watcher-network"
139139
]
140140

141-
# TODO: Filter away all modules not available on system
142-
self.modules = {name: Module(name, testing=testing) for name in _possible_modules}
141+
self.modules = []
142+
for name in _possible_modules:
143+
if not _locate_executable(name):
144+
self.modules.append(Module(name, testing=testing))
143145

144146
def get_unexpected_stops(self):
145147
return list(filter(lambda x: x.started and not x.is_alive(), self.modules.values()))

0 commit comments

Comments
 (0)