summaryrefslogtreecommitdiff
path: root/jasper.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-01 18:48:09 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-06 18:18:06 +0200
commit7dc4f3022d1843063dce621ca09c80bb64cdb8c1 (patch)
tree6fac97fd6d219b6aa6ec281bb5c806a354d48b71 /jasper.py
parent016cc20ad8605371e820e509f9881c2750019d09 (diff)
downloadjasper-client-7dc4f3022d1843063dce621ca09c80bb64cdb8c1.tar.gz
jasper-client-7dc4f3022d1843063dce621ca09c80bb64cdb8c1.zip
Improve diagnose.py reusability
Diffstat (limited to 'jasper.py')
-rwxr-xr-xjasper.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/jasper.py b/jasper.py
index 27a8de8..5061510 100755
--- a/jasper.py
+++ b/jasper.py
@@ -8,8 +8,7 @@ import logging
import yaml
import argparse
-from client.diagnose import Diagnostics
-from client import vocabcompiler, tts, stt, jasperpath
+from client import vocabcompiler, tts, stt, jasperpath, diagnose
# Add jasperpath.LIB_PATH to sys.path
sys.path.append(jasperpath.LIB_PATH)
@@ -132,8 +131,7 @@ if __name__ == "__main__":
if args.debug:
logger.setLevel(logging.DEBUG)
- if (not args.no_network_check and
- not Diagnostics.check_network_connection()):
+ if not args.no_network_check and not diagnose.check_network_connection():
logger.warning("Network not connected. This may prevent Jasper from " +
"running properly.")