fixed all the bugs

This commit is contained in:
neersighted 2012-02-29 21:11:42 -08:00
parent 8221dd68ef
commit 9600ae0e57

View file

@ -27,19 +27,9 @@ pwd = os.getcwd()
clearlog1 = ": > ./bot.log && "
clearlog2 = ": > ./bot.log"
try:
daemoncheck = subprocess.check_output("locate /usr/bin/daemon", shell=True)
except (subprocess.CalledProcessError), e:
daemoncheck = "False"
print "daemon not installed!"
exit
daemoncheck = subprocess.check_output("locate /usr/bin/daemon", shell=True)
daemon = re.match(r'^/usr/bin/daemon$', daemoncheck)
try:
screencheck = subprocess.check_output("locate /usr/bin/screen", shell=True)
except (subprocess.CalledProcessError), e:
screencheck = "False"
print "screen not installed!"
exit
screencheck = subprocess.check_output("locate /usr/bin/screen", shell=True)
screen = re.match(r'^/usr/bin/screen$', screencheck)
backend = config.get("wrapper", {}).get("backend", "daemon")