cheat-fork-echo/install

12 lines
274 B
Text
Raw Normal View History

#!/usr/bin/env python
from os.path import expanduser
import shutil
import sys
try:
shutil.copy('./cheat', '/usr/local/bin/')
2013-08-11 21:39:36 +02:00
shutil.copytree('./.cheat/', expanduser('~'))
except IOError as e:
print >> sys.stderr, "This installer must be run as root."
sys.exit(1)