From 12a73debc9366aff44e32d119234cd8898205991 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 8 Oct 2014 20:01:41 +0200 Subject: Use configfile from jasper config dir in g2p.py (i.e. use ) --- client/g2p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/g2p.py b/client/g2p.py index ec0b025..9e715c9 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -69,7 +69,7 @@ class PhonetisaurusG2P(object): conf = {'fst_model': os.path.join(jasperpath.APP_PATH, os.pardir, 'phonetisaurus', 'g014b2b.fst')} # Try to get fst_model 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