Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion unstructured/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import subprocess
import tempfile
import threading
from functools import wraps
from functools import lru_cache, wraps
from itertools import combinations
from typing import (
TYPE_CHECKING,
Expand Down Expand Up @@ -227,6 +227,7 @@ async def wrapper_async(*args: _P.args, **kwargs: _P.kwargs):
return decorator


@lru_cache(maxsize=128)
def dependency_exists(dependency: str):
try:
importlib.import_module(dependency)
Expand Down