summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/g2p.py2
1 files changed, 1 insertions, 1 deletions
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)