switched restarter to python
This commit is contained in:
parent
efecefbf19
commit
c014d91ec2
3 changed files with 16 additions and 14 deletions
13
lib/restart.py
Executable file
13
lib/restart.py
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python
|
||||
# Tiny little restarter by neersighted
|
||||
import subprocess, sys, os
|
||||
|
||||
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()
|
Reference in a new issue