12 Companion mock_device_auth.py (5/5)
if __name__ == "__main__":
BOOKS.mkdir(exist_ok=True)
print(f"Mock device-code server on http://{lan_ip()}:{PORT} (EPUBs from {BOOKS})")
ThreadingHTTPServer(("0.0.0.0", PORT), Handler).serve_forever()