picoweb icon indicating copy to clipboard operation
picoweb copied to clipboard

favicon.ico

Open MaxThom opened this issue 2 years ago • 0 comments

Hey thanks for this superbe little framework.

Im trying to add a favicon to my webapp, but I keep getting this error: AttributeError("'module' object has no attribute '__path__'",)

My favicon route:

@app.route("/favicon.ico")
def favicon(req, resp):
  yield from app.sendfile(resp, "favicon.ico")

I got the icon in the structure and uploaded on the esp32 image

Any idea ? Repo link in case: https://github.com/MaxThom/cozylamp Thank you !

MaxThom avatar Oct 12 '21 07:10 MaxThom