Skip to content

Commit

Permalink
Update plugin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
klebster2 authored Nov 2, 2024
1 parent 0f73fd6 commit d3e6af6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ def install(package: str):
for dataset_name, item in wn.config.index.items()
if item.get("language")
}
if "PYTEST_CURRENT_TEST" in os.environ:
ARTEFACT_NAME = LANGUAGE_TO_WORDNET_ARTEFACT["mul"]
else:
ARTEFACT_NAME = LANGUAGE_TO_WORDNET_ARTEFACT.get(vim.eval("g:wn_cmp_language"), "mul")

ARTEFACT_NAME = LANGUAGE_TO_WORDNET_ARTEFACT.get(vim.eval("g:wn_cmp_language"), "mul")
try:
spec = wn.Wordnet(ARTEFACT_NAME)

Expand Down

0 comments on commit d3e6af6

Please sign in to comment.