Add action to copy chromedriver.
This commit is contained in:
parent
88269a613a
commit
cba155bcfb
2 changed files with 42 additions and 0 deletions
12
tools/copy_binary.py
Executable file
12
tools/copy_binary.py
Executable 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)
|
Loading…
Add table
Add a link
Reference in a new issue