2013-08-10 22:32:49 +02:00
|
|
|
#!/usr/bin/env python
|
2013-08-10 23:08:17 +02:00
|
|
|
from os.path import expanduser
|
2013-08-10 22:32:49 +02:00
|
|
|
import shutil
|
|
|
|
import sys
|
|
|
|
|
|
|
|
try:
|
|
|
|
shutil.copy('./cheat', '/usr/local/bin/')
|
2013-08-11 21:37:11 +02:00
|
|
|
shutil.copy('./.cheat/', expanduser('~'))
|
2013-08-10 22:32:49 +02:00
|
|
|
except IOError as e:
|
|
|
|
print >> sys.stderr, "This installer must be run as root."
|
|
|
|
sys.exit(1)
|
2013-08-11 21:37:11 +02:00
|
|
|
|
|
|
|
# don't forget to chown back to the normal user
|