From 5f246f6e72433167f81d0646c2d4f07066a293c7 Mon Sep 17 00:00:00 2001 From: psy Date: Sun, 8 Sep 2013 09:49:25 -0700 Subject: [PATCH] added sync on starting process of history and browser to launch --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 127cb92..cf550e2 100644 --- a/main.py +++ b/main.py @@ -20,6 +20,7 @@ except: import subprocess, socket, threading from options import BCOptions from webserver import BorderCheckWebserver +import webbrowser # set to emit debug messages about errors (0 = off). DEBUG = 1 @@ -341,6 +342,10 @@ class bc(object): t = threading.Thread(target=BorderCheckWebserver, args=(self, )) t.start() time.sleep(2) + try: + webbrowser.get(self.browser_path).open('http://127.0.0.1:8080', new=1) + except: + print "Error: Browser is not responding correctly.\n" except: print "Error: unable to start thread" pass