fix compatibility linux/mac
This commit is contained in:
parent
cbe27643d0
commit
ecc92cd109
|
@ -165,14 +165,16 @@ class ChromeDriverManager(object):
|
||||||
|
|
||||||
:return: on success, name of the unpacked executable
|
:return: on success, name of the unpacked executable
|
||||||
"""
|
"""
|
||||||
base_ = "chromedriver{}"
|
base_ = exe_name = "chromedriver{}"
|
||||||
_platform = self.platform
|
_platform = self.platform
|
||||||
if _platform in ('win32',):
|
if _platform in ('win32',):
|
||||||
exe_name = base_.format(".exe")
|
exe_name = base_.format(".exe")
|
||||||
if _platform in ('linux',):
|
if _platform in ('linux',):
|
||||||
_platform+='64'
|
_platform+='64'
|
||||||
|
exe_name = exe_name.format('')
|
||||||
if _platform in ('darwin',):
|
if _platform in ('darwin',):
|
||||||
_platform = 'mac64'
|
_platform = 'mac64'
|
||||||
|
exe_name = exe_name.format('')
|
||||||
|
|
||||||
zip_name = base_.format(".zip")
|
zip_name = base_.format(".zip")
|
||||||
ver = self.get_release_version_number()
|
ver = self.get_release_version_number()
|
||||||
|
|
Loading…
Reference in New Issue