File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
ovos_core/intent_services Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
from ovos_config .config import Configuration
12
12
from ovos_plugin_manager .templates .pipeline import PipelineMatch , PipelinePlugin
13
13
from ovos_utils import flatten_list
14
- from ovos_utils .bracket_expansion import expand_options
14
+ from ovos_utils .bracket_expansion import expand_template
15
15
from ovos_utils .lang import standardize_lang_tag
16
16
from ovos_utils .log import LOG
17
17
from ovos_utils .parse import match_one
@@ -33,7 +33,7 @@ def load_resource_files(self):
33
33
self ._voc_cache [lang2 ] = {}
34
34
for f in os .listdir (f"{ base } /{ lang } " ):
35
35
with open (f"{ base } /{ lang } /{ f } " , encoding = "utf-8" ) as fi :
36
- lines = [expand_options (l ) for l in fi .read ().split ("\n " )
36
+ lines = [expand_template (l ) for l in fi .read ().split ("\n " )
37
37
if l .strip () and not l .startswith ("#" )]
38
38
n = f .split ("." , 1 )[0 ]
39
39
self ._voc_cache [lang2 ][n ] = flatten_list (lines )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ovos-adapt-parser>=1.0.5, <2.0.0
8
8
ovos_ocp_pipeline_plugin >= 1.0.7 , < 2.0.0
9
9
ovos-common-query-pipeline-plugin >= 1.0.5 , < 2.0.0
10
10
11
- ovos-utils >= 0.3.5 ,< 1.0.0
11
+ ovos-utils [ extras ] >= 0.6.0a1 ,< 1.0.0
12
12
ovos_bus_client >= 0.1.4 ,< 2.0.0
13
13
ovos-plugin-manager >= 0.5.6 ,< 1.0.0
14
14
ovos-config >= 0.0.13 ,< 2.0.0
You can’t perform that action at this time.
0 commit comments