chore: refactor imports and adopt new utils utilities

This commit is contained in:
sankalp committed 2026-07-14 18:45:52 +05:45
1 parent b2114f52b1
commit 6f2d0bf444
65 files changed
+221 -266

No files matched your search

+4 -2
View File
@@ -31,11 +31,13 @@ class GoogleLens(Service):
super().__init__(**kwargs)
def capture_region(self, dest_path):
from utils.functions import find_binary
# Check for dependencies
if run_command(["which", "grim"]).returncode != 0:
if not find_binary("grim"):
raise RuntimeError("grim not found - please install it")
if run_command(["which", "slurp"]).returncode != 0:
if not find_binary("slurp"):
raise RuntimeError("slurp not found - please install it")
try: