Refactored the application per some feedback on reddit.

This commit is contained in:
Chris Lane
2013-08-11 15:37:11 -04:00
parent 11ef3149cd
commit 39b1cf391f
22 changed files with 167 additions and 265 deletions

View File

@ -5,7 +5,9 @@ import sys
try:
shutil.copy('./cheat', '/usr/local/bin/')
shutil.copy('./.cheat', expanduser('~'))
shutil.copy('./.cheat/', expanduser('~'))
except IOError as e:
print >> sys.stderr, "This installer must be run as root."
sys.exit(1)
# don't forget to chown back to the normal user