diff --git a/eris/tools.py b/eris/tools.py index 16c6c45..0d85b82 100755 --- a/eris/tools.py +++ b/eris/tools.py @@ -680,6 +680,9 @@ def splitext(path): @functools.lru_cache() def is_tool_available(tool): + if (hasattr(tool, "command") and + tool.command.startswith(f"{PYTHON_EXECUTABLE} -m ")): + return importlib.util.find_spec(tool.command.split()[2]) is not None try: return all(shutil.which(executable) for executable in tool.executables) except AttributeError: