16 lines
319 B
Python
Executable file
16 lines
319 B
Python
Executable file
#!/usr/bin/env python
|
|
# Tiny little restarter by neersighted
|
|
import sys
|
|
import os
|
|
import subprocess
|
|
|
|
if os.path.isfile("./control.sh"):
|
|
restart = "./control.sh restart"
|
|
elif os.path.isfile("./bot.sh"):
|
|
restart = "./bot.sh restart"
|
|
else:
|
|
restart = "./bot.py"
|
|
|
|
subprocess.call(restart, shell=True)
|
|
sys.exit()
|