Mercurial > hg > webaudioevaluationtool
view pythonServer-legacy.py @ 808:cff21eb2c053
On XML parser error, will clear the page to show only the error message.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 18 Dec 2015 18:33:08 +0000 |
parents | 66d732c2bc14 |
children |
line wrap: on
line source
import SimpleHTTPServer import SocketServer PORT = 8080 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), Handler) print "serving at port", PORT httpd.serve_forever()