From 827397d86d65901e8ff6c91f984e5c86620a0309 Mon Sep 17 00:00:00 2001 From: Leon Date: Wed, 1 Jan 2020 22:30:57 +0100 Subject: [PATCH] Update __init__.py --- undetected_chromedriver/__init__.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index aed415c..a603361 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -122,11 +122,13 @@ class ChromeDriverManager(object): :param patch_selenium: patch selenium webdriver classes for Chrome and ChromeDriver (for current python session) :return: """ - if ( - not self.__class__.installed - or not __is_patched__ - or not os.path.exists(self.executable_path) - ): + if not os.path.exists(self.executable_path) + +# if +# not self.__class__.installed +# or not __is_patched__ +# or not os.path.exists(self.executable_path) +# ): self.fetch_chromedriver() self.patch_binary() self.__class__.installed = True