mirror of
https://github.com/cheat/cheat.git
synced 2024-11-22 05:51:35 +01:00
12 lines
269 B
Python
Executable File
12 lines
269 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.copy('./.cheat', expanduser('~'))
|
|
except IOError as e:
|
|
print >> sys.stderr, "This installer must be run as root."
|
|
sys.exit(1)
|