Skip to content

Commit

Permalink
Better logs for ASR installing deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Psychokiller1888 committed Feb 23, 2020
1 parent 182d79e commit 7752bb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/asr/model/ASR.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ def install(self) -> bool:

try:
for dep in self.DEPENDENCIES['system']:
self.logInfo(f'Installing "{dep}"')
self.Commons.runRootSystemCommand(['apt-get', 'install', '-y', dep])
self.logInfo(f'Installed "{dep}"')
self.logInfo(f'Installed!')

for dep in self.DEPENDENCIES['pip']:
self.logInfo(f'Installing "{dep}"')
self.Commons.runSystemCommand(['./venv/bin/pip', 'install', dep])
self.logInfo(f'Installed "{dep}"')
self.logInfo(f'Installed!')

return True
except Exception as e:
Expand Down

0 comments on commit 7752bb3

Please sign in to comment.