Skip to content

Commit

Permalink
actually check for module existence in manager
Browse files Browse the repository at this point in the history
  • Loading branch information
xylix committed Mar 3, 2020
1 parent 481ace6 commit b7ed55a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aw_qt/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ def __init__(self, testing: bool=False) -> None:
# "aw-watcher-network"
]

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

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

0 comments on commit b7ed55a

Please sign in to comment.