summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-17 14:37:16 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-17 14:37:16 +0200
commita230f623eeeda960e19dadc6fac0e940137a9776 (patch)
tree5053c5ecc821e8ee943b7b175776882b52f007fb /client
parent84df4377e0794d657b783a93b5a15ccfcaa375f2 (diff)
downloadjasper-client-a230f623eeeda960e19dadc6fac0e940137a9776.tar.gz
jasper-client-a230f623eeeda960e19dadc6fac0e940137a9776.zip
Use jasperpath in diagnose.py
Removed jasper_modules_path() function
Diffstat (limited to 'client')
-rwxr-xr-xclient/diagnose.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/client/diagnose.py b/client/diagnose.py
index 415eb6e..28cd9c8 100755
--- a/client/diagnose.py
+++ b/client/diagnose.py
@@ -4,7 +4,7 @@ import re
import socket
import os
from subprocess import check_output, call
-
+import jasperpath
class Diagnostics:
@@ -15,9 +15,6 @@ class Diagnostics:
To add new checks, add a boolean returning method with a name that starts
with `check_`
"""
- @classmethod
- def jasper_modules_path(cls):
- return os.path.abspath('../../')
@classmethod
def check_network_connection(cls):
@@ -35,7 +32,7 @@ class Diagnostics:
@classmethod
def check_phonetisaurus_dictionary_file(cls):
- return os.path.isfile(os.path.join(cls.jasper_modules_path(), "phonetisaurus/g014b2b.fst"))
+ return os.path.isfile(os.path.join(jasperpath.APP_PATH, "..", "phonetisaurus/g014b2b.fst"))
@classmethod
def check_phonetisaurus_program(cls):