summaryrefslogtreecommitdiff
path: root/client/diagnose.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-18 21:02:53 -0400
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-18 21:02:53 -0400
commit8c8038c08fcf489d16591d9271a9c91acab2da99 (patch)
tree238be7f8897df0c10f38e0b825fbd0c1231189cc /client/diagnose.py
parent1c802f6ee791b9b18fbc3ad2791e94e083af3fde (diff)
parent21cc35e631c87251efecf9b725d6bd313349ad18 (diff)
downloadjasper-client-8c8038c08fcf489d16591d9271a9c91acab2da99.tar.gz
jasper-client-8c8038c08fcf489d16591d9271a9c91acab2da99.zip
Merge pull request #178 from Holzhaus/jasperpath
Add dedicated path module
Diffstat (limited to 'client/diagnose.py')
-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):