fix compatibility linux/mac

This commit is contained in:
Leon 2020-03-03 14:53:55 +01:00 committed by GitHub
parent cbe27643d0
commit ecc92cd109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -165,14 +165,16 @@ class ChromeDriverManager(object):
:return: on success, name of the unpacked executable
"""
base_ = "chromedriver{}"
base_ = exe_name = "chromedriver{}"
_platform = self.platform
if _platform in ('win32',):
exe_name = base_.format(".exe")
if _platform in ('linux',):
_platform+='64'
exe_name = exe_name.format('')
if _platform in ('darwin',):
_platform = 'mac64'
exe_name = exe_name.format('')
zip_name = base_.format(".zip")
ver = self.get_release_version_number()