diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-17 14:37:16 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-17 14:37:16 +0200 |
| commit | a230f623eeeda960e19dadc6fac0e940137a9776 (patch) | |
| tree | 5053c5ecc821e8ee943b7b175776882b52f007fb /client | |
| parent | 84df4377e0794d657b783a93b5a15ccfcaa375f2 (diff) | |
| download | jasper-client-a230f623eeeda960e19dadc6fac0e940137a9776.tar.gz jasper-client-a230f623eeeda960e19dadc6fac0e940137a9776.zip | |
Use jasperpath in diagnose.py
Removed jasper_modules_path() function
Diffstat (limited to 'client')
| -rwxr-xr-x | client/diagnose.py | 7 |
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): |
