Mercurial > hg > webaudioevaluationtool
annotate pythonServer-legacy.py @ 1315:d9b9f707f862
Updated author list for WAC 2016
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Sun, 21 Feb 2016 11:15:52 +0000 |
parents | |
children |
rev | line source |
---|---|
nickjillings@1315 | 1 import SimpleHTTPServer |
nickjillings@1315 | 2 import SocketServer |
nickjillings@1315 | 3 |
nickjillings@1315 | 4 PORT = 8080 |
nickjillings@1315 | 5 |
nickjillings@1315 | 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler |
nickjillings@1315 | 7 |
nickjillings@1315 | 8 httpd = SocketServer.TCPServer(("", PORT), Handler) |
nickjillings@1315 | 9 |
nickjillings@1315 | 10 print "serving at port", PORT |
nickjillings@1315 | 11 httpd.serve_forever() |