mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-16 08:58:35 +01:00
12 lines
306 B
Python
Executable file
12 lines
306 B
Python
Executable file
#!/usr/bin/env python
|
|
from os.path import expanduser
|
|
import shutil
|
|
import sys
|
|
|
|
try:
|
|
shutil.copy('./cheat', '/usr/local/bin/')
|
|
shutil.copytree('./.cheat', expanduser('~') + '/.cheat')
|
|
print "cheat has been installed successfully."
|
|
except IOError as e:
|
|
print >> sys.stderr, e
|
|
sys.exit(1)
|