1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
diff --git a/src/choreographer/browsers/chromium.py b/src/choreographer/browsers/chromium.py
index 73b4642..1ad4b09 100644
--- a/src/choreographer/browsers/chromium.py
+++ b/src/choreographer/browsers/chromium.py
@@ -117,43 +117,7 @@ class Chromium:
def _libs_ok(self) -> bool:
"""Return true if libs ok."""
- if self.skip_local:
- _logger.debug(
- "If we HAVE to skip local.",
- )
- return True
- _logger.debug("Checking for libs needed.")
- if platform.system() != "Linux":
- _logger.debug("We're not in linux, so no need for check.")
- return True
- p = None
- try:
- _logger.debug(f"Trying ldd {self.path}")
- p = subprocess.run( # noqa: S603, validating run with variables
- [ # noqa: S607 path is all we have
- "ldd",
- str(self.path),
- ],
- capture_output=True,
- timeout=5,
- check=True,
- )
- except Exception as e: # noqa: BLE001
- msg = "ldd failed."
- stderr = p.stderr.decode() if p and p.stderr else None
- # Log failure as INFO rather than WARNING so that it's hidden by default,
- # since browser may succeed even if ldd fails
- _logger.info(
- msg # noqa: G003 + in log
- + f" e: {e}, stderr: {stderr}",
- )
- return False
- if b"not found" in p.stdout:
- msg = "Found deps missing in chrome"
- _logger.debug2(msg + f" {p.stdout.decode()}")
- return False
- _logger.debug("No problems found with dependencies")
- return True
+ return os.path.exists("{self.path}")
def __init__(
self,
|