electron/tools/copy_binary.py

13 lines
189 B
Python
Raw Normal View History

2014-09-12 13:48:45 +00:00
#!/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)