def main(config, output):
try:
import webbrowser
except ImportError:
print('Go to http://{your device IP}:3000 to start')
login(config, output)
return
import threading
webserver = threading.Thread(target=login, args=(config, output))
webserver.daemon = True
webserver.start()
print("A web page should is opened. If not, go to http://127.0.0.1:3000 to start")
webbrowser.open('http://127.0.0.1:3000')
while webserver.is_alive():
try:
time.sleep(1)
except KeyboardInterrupt:
break
评论列表
文章目录