On 10/25/05, Minh Luu <[EMAIL PROTECTED]> wrote:
>
>
> When I run the gs-start.py created by the tg-admin, I got an error about
> "The path '/favicon.ico' was not found".
> I can create a favicon.ico file but where do I put the file?

That's strange. On my system, the CherryPy favicon.ico shows up (which
is what it should do when there isn't a favicon.ico...)

you could do something like this:

from cherrypy.lib.cptools import serveFile
import pkg_resources

class Root:
    def favicon_ico(self):
        return serveFile(pkg_resources.resource_filename("yourpackage",
"static/favicon.ico"))

Kevin

Reply via email to