mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
11 lines
285 B
Python
Executable file
11 lines
285 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')
|
|
except IOError as e:
|
|
print >> sys.stderr, "This installer must be run as root."
|
|
sys.exit(1)
|