Launching browser within CherryPy

Posted by Alan Harris-Reid on Stack Overflow See other posts from Stack Overflow or by Alan Harris-Reid
Published on 2010-06-05T02:53:40Z Indexed on 2010/06/05 16:02 UTC
Read the original article Hit count: 275

Filed under:
|
|

I have a html page displayed using...

cherrypy.quickstart(ShowHTML(htmlfile), config=configfile)

Once the page is loaded (eg. initiated via. the command 'python mypage.py'), I would like to automatically launch the browser to display the page (eg. via. http://localhost/8000). Is there any way I can achieve this (eg. via. a hook within CherryPy), or do I have to call-up the browser manually (eg. by double-clicking an icon)?

TIA Alan

© Stack Overflow or respective owner

Related posts about python

Related posts about browser