From a564cb3858c412570634b0a45ea975ece1f7446d Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 13 Oct 2014 17:19:07 +0200 Subject: Use jasperpath in stt.py (bugfix no. 2) --- client/stt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/stt.py b/client/stt.py index e441066..f5254ca 100644 --- a/client/stt.py +++ b/client/stt.py @@ -240,7 +240,7 @@ class GoogleSTT(AbstractSTTEngine): config = {} # HMM dir # Try to get hmm_dir from config - profile_path = os.path.join(os.path.dirname(__file__), 'profile.yml') + profile_path = jasperpath.config('profile.yml') if os.path.exists(profile_path): with open(profile_path, 'r') as f: profile = yaml.safe_load(f) -- cgit v1.3.1