|
@ -20,6 +20,7 @@ except: |
|
|
import subprocess, socket, threading |
|
|
import subprocess, socket, threading |
|
|
from options import BCOptions |
|
|
from options import BCOptions |
|
|
from webserver import BorderCheckWebserver |
|
|
from webserver import BorderCheckWebserver |
|
|
|
|
|
import webbrowser |
|
|
|
|
|
|
|
|
# set to emit debug messages about errors (0 = off). |
|
|
# set to emit debug messages about errors (0 = off). |
|
|
DEBUG = 1 |
|
|
DEBUG = 1 |
|
@ -341,6 +342,10 @@ class bc(object): |
|
|
t = threading.Thread(target=BorderCheckWebserver, args=(self, )) |
|
|
t = threading.Thread(target=BorderCheckWebserver, args=(self, )) |
|
|
t.start() |
|
|
t.start() |
|
|
time.sleep(2) |
|
|
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: |
|
|
except: |
|
|
print "Error: unable to start thread" |
|
|
print "Error: unable to start thread" |
|
|
pass |
|
|
pass |
|
|