File: paths

package info (click to toggle)
pocketsphinx-python 1%3A0.1.15-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 320 kB
  • sloc: python: 554; sh: 11; makefile: 9
file content (21 lines) | stat: -rw-r--r-- 594 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
 pocketsphinx/__init__.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/pocketsphinx/__init__.py
+++ b/pocketsphinx/__init__.py
@@ -41,12 +41,12 @@ DefaultConfig = Decoder.default_config
 
 def get_model_path():
     """ Return path to the model. """
-    return os.path.join(os.path.dirname(__file__), 'model')
+    return '/usr/share/pocketsphinx/model/en-us'
 
 
 def get_data_path():
     """ Return path to the data. """
-    return os.path.join(os.path.dirname(__file__), 'data')
+    return '/usr/share/pocketsphinx/test/data'
 
 
 class Pocketsphinx(Decoder):