<div dir="auto"><div><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span style="font-family:arial;font-size:small;background-color:rgb(255,255,255)">I am starting to work on a processing script which has a html file as output. The html file has js scripts which require it to be served from a web server (httpd). The regular webkit viewer is not quite capable enough but I can launch the system web browser using the webbrowser python package from the script. However, I cannot figure out how to launch a SimpleHTTPServer in a separate thread from the script. When I start a httpd server from the script using the server_forever method the server is launched but Qgis freezes. When I try to use threading following </span><div style="font-family:arial;font-size:small;background-color:rgb(255,255,255)" dir="auto"> <a href="https://docs.python.org/2/library/socketserver.html#asynchronous-mixins" style="text-decoration:none" target="_blank"><var style="line-height:inherit;text-decoration:inherit;text-transform:inherit;font-family:inherit;font-weight:inherit;font-style:inherit;font-size:inherit">https://docs.python.org/2/lib<wbr>rary/socketserver.html#asynchr<wbr>onous-mixins</var></a>qgis crashes. Would using a ThreadedTCPServer be the right approach ?<div><br><div><div>Any tips, examples, or thoughts much welcome. Should I subscribe and post to qgis-developer ?</div><font color="#888888"><div><br><div>Andreas</div></div></font></div></div></div></div>
</blockquote></div><br></div></div>