From 1a1ba7350b0da2ca5e6f9ec5e90bc4e88779dddf Mon Sep 17 00:00:00 2001 From: Leon Date: Fri, 2 Jun 2023 22:42:43 +0200 Subject: [PATCH] Update __init__.py --- undetected_chromedriver/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index 1f9d437..5bae19e 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -852,5 +852,7 @@ def find_chrome_executable(): ): candidates.add(os.sep.join((item, subitem, "chrome.exe"))) for candidate in candidates: + logger.debug('checking if %s exists and is executable' % condidate) if os.path.exists(candidate) and os.access(candidate, os.X_OK): + logger.debug('found! using %s' % candidate) return os.path.normpath(candidate)