Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
14 lines
751 B
Diff
14 lines
751 B
Diff
diff --git a/kaldi_active_grammar/ffi.py b/kaldi_active_grammar/ffi.py
|
|
index 936ed35..1eb2f3d 100644
|
|
--- a/kaldi_active_grammar/ffi.py
|
|
+++ b/kaldi_active_grammar/ffi.py
|
|
@@ -15,7 +15,7 @@ from cffi import FFI
|
|
from .utils import exec_dir, platform
|
|
|
|
_ffi = FFI()
|
|
-_library_binary_path = os.path.join(exec_dir, dict(windows='kaldi-dragonfly.dll', linux='libkaldi-dragonfly.so', macos='libkaldi-dragonfly.dylib')[platform])
|
|
+_library_binary_path = os.path.join('@kaldiFork@', dict(windows='kaldi-dragonfly.dll', linux='libkaldi-dragonfly.so', macos='libkaldi-dragonfly.dylib')[platform])
|
|
_c_source_ignore_regex = re.compile(r'(\b(extern|DRAGONFLY_API)\b)|("C")|(//.*$)', re.MULTILINE) # Pattern for extraneous stuff to be removed
|
|
|
|
def encode(text):
|