Mercurial > hg > webaudioevaluationtool
view pythonServer-legacy.py @ 754:a554f64bcba7
Will attempt to load XML only if url is set
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 18 Dec 2015 18:29:57 +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()