Resolve sdcv's pickyness with dict data path.

Closes #12
This commit is contained in:
TEC 2021-02-03 11:47:29 +08:00
parent c0f8607c62
commit 2a8db50fb8
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ Any cons cell here means using all dictionaries.")
"The path of lexic program.")
(defvar lexic-dictionary-path nil
"The path of dictionaries.")
"The path to the dictionaries.")
(defvar lexic-word-processor nil
"This is the function that take a word (stirng)
@ -292,7 +292,7 @@ TODO decouple the tool from the general method."
"Generate the appropriate stcv dictionary argument.
Using `lexic-current-dictionary-list' and `lexic-dictionary-path'."
(append
(and lexic-dictionary-path (list "--data-dir" lexic-dictionary-path))
(and lexic-dictionary-path (list "--data-dir" (expand-file-name lexic-dictionary-path)))
(and (listp lexic-current-dictionary-list)
(mapcan (lambda (dict)
(list "-u" dict))