Add action to copy chromedriver.

This commit is contained in:
Cheng Zhao 2014-09-12 21:48:45 +08:00
parent 88269a613a
commit cba155bcfb
2 changed files with 42 additions and 0 deletions

12
tools/copy_binary.py Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env python
import os
import shutil
import stat
import sys
src = sys.argv[1]
dist = sys.argv[2]
shutil.copyfile(src, dist)
os.chmod(dist, os.stat(dist).st_mode | stat.S_IEXEC)