Skip to content

Commit

Permalink
virtme-ng: Don't fail on missing argcomplete
Browse files Browse the repository at this point in the history
The argcomplete dependency isn't critical, so let's continue on in its
absence instead of blowing up (convenient for running the 'vng'
command directly from the source tree without having to install any
python module dependencies).

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
  • Loading branch information
zevweiss committed Nov 16, 2023
1 parent 5425a2a commit 40475b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion virtme_ng/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
)
from select import select
from pathlib import Path
from argcomplete import autocomplete
try:
from argcomplete import autocomplete
except ModuleNotFoundError:
def autocomplete(*args, **kwargs):
# pylint: disable=unused-argument
pass

from virtme.util import SilentError, get_username
from virtme_ng.utils import CONF_FILE
Expand Down

0 comments on commit 40475b4

Please sign in to comment.