auth.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:avs 作者: respeaker 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号