Attempting to cheatsheets out of application logic.

This commit is contained in:
Chris Lane
2013-08-10 17:08:17 -04:00
parent 8e9cfc0eb1
commit cbbd18e621
3 changed files with 238 additions and 233 deletions

View File

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