Update __init__.py

This commit is contained in:
Leon 2020-01-01 22:30:57 +01:00 committed by GitHub
parent dec56d3aaf
commit 827397d86d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -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