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 b67752b commit 0f73fd6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions python/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ def install(package: str):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])


# This is the quick and dirty way to get packages installed if they are not already installed
try:
import vim # pylint: disable=import-error
except Exception as e:
print("No vim module available outside vim")
raise e
if "PYTEST_CURRENT_TEST" in os.environ:
# This is the quick and dirty way to get packages installed if they are not already installed
try:
import vim # pylint: disable=import-error

except Exception as e:
print("No vim module available outside vim")
raise e

try:
import wn
Expand Down

0 comments on commit 0f73fd6

Please sign in to comment.