Update __init__.py

This commit is contained in:
Leon 2020-01-01 22:26:04 +01:00 committed by GitHub
parent 43e8aee813
commit dec56d3aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ class ChromeDriverManager(object):
exe_name = base_.format(".exe")
zip_name = base_.format(".zip")
ver = self.get_release_version_number()
if os.path.exists(exe_name):
return exe_name
urlretrieve(
f"{_DL_BASE}{ver}/{base_.format(f'_{self.platform}')}.zip",
filename=zip_name,