From fbaf7230ff045cfdf96bfd2ca4977fb1436731eb Mon Sep 17 00:00:00 2001 From: psy Date: Sun, 8 Sep 2013 09:58:35 -0700 Subject: [PATCH] fixed webbrowser automatic opening --- main.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index cf550e2..2a6cc74 100644 --- a/main.py +++ b/main.py @@ -279,7 +279,7 @@ class bc(object): print "Trace:", count, "->", "Not allowed" count+=1 logfile.close() - self.old_url = url + self.old_url = url def getGEO(self): """ @@ -342,13 +342,14 @@ 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 + # open same browser of history access on a new tab + try: + webbrowser.get(self.browser_path).open('http://127.0.0.1:8080', new=1) + except: + print "Error: Browser is not responding correctly.\n" # run traceroutes traces = self.try_running(self.traces, "\nInternal error tracerouting.") print '='*45 + "\n"