Hard code the chromedriver's version
It is not possible to run chromedriver for all targets.
This commit is contained in:
parent
cb92df687d
commit
b7cdb00d09
4 changed files with 10 additions and 14 deletions
|
@ -190,13 +190,6 @@ def get_atom_shell_version():
|
|||
return 'v' + atom_gyp()['version%']
|
||||
|
||||
|
||||
def get_chromedriver_version():
|
||||
SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
|
||||
chromedriver = os.path.join(SOURCE_ROOT, 'dist', 'chromedriver')
|
||||
output = subprocess.check_output([chromedriver, '-v']).strip()
|
||||
return 'v' + output[13:output.rfind(' ')]
|
||||
|
||||
|
||||
def parse_version(version):
|
||||
if version[0] == 'v':
|
||||
version = version[1:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue