Fix generating distribution for chromedriver

This commit is contained in:
Cheng Zhao 2015-04-08 22:22:40 +08:00
parent 42dafd47fd
commit 0bc5d6438e

View file

@ -160,7 +160,7 @@ def get_atom_shell_version():
def get_chromedriver_version(): def get_chromedriver_version():
SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..')) SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
chromedriver = os.path.join(SOURCE_ROOT, 'out', 'R', 'chromedriver') chromedriver = os.path.join(SOURCE_ROOT, 'dist', 'chromedriver')
output = subprocess.check_output([chromedriver, '-v']).strip() output = subprocess.check_output([chromedriver, '-v']).strip()
return 'v' + output[13:output.rfind(' ')] return 'v' + output[13:output.rfind(' ')]