summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-08 20:01:41 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-08 20:53:11 +0200
commit12a73debc9366aff44e32d119234cd8898205991 (patch)
tree1f2b82aecfa2c289196d10377092ab4743a52257 /client
parentd8e79ba4db37e4fcd1fdddb5e5554a762f97ed71 (diff)
downloadjasper-client-12a73debc9366aff44e32d119234cd8898205991.tar.gz
jasper-client-12a73debc9366aff44e32d119234cd8898205991.zip
Use configfile from jasper config dir in g2p.py (i.e. use )
Diffstat (limited to 'client')
-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)