(host, port)
| 1558 | sys.exit(exit_code) |
| 1559 | |
| 1560 | def open_browser_tab(host, port): |
| 1561 | url = 'http://%s:%s/' % (host, port) |
| 1562 | |
| 1563 | def _open_tab(url): |
| 1564 | time.sleep(1.5) |
| 1565 | webbrowser.open_new_tab(url) |
| 1566 | |
| 1567 | thread = threading.Thread(target=_open_tab, args=(url,)) |
| 1568 | thread.daemon = True |
| 1569 | thread.start() |
| 1570 | |
| 1571 | def install_auth_handler(password): |
| 1572 | app.config['PASSWORD'] = password |