Mercurial > hg > webaudioevaluationtool
annotate pythonServer.py @ 1706:263884be0481
SMC 15: Added paragraph on pre-/post- test questions
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Thu, 09 Apr 2015 11:24:46 +0100 |
parents | ba4187ad3857 |
children | e08f2b155d8b |
rev | line source |
---|---|
nickjillings@1680 | 1 import SimpleHTTPServer |
nickjillings@1680 | 2 import SocketServer |
nickjillings@1680 | 3 |
nickjillings@1680 | 4 PORT = 8080 |
nickjillings@1680 | 5 |
nickjillings@1680 | 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler |
nickjillings@1680 | 7 |
nickjillings@1680 | 8 httpd = SocketServer.TCPServer(("", PORT), Handler) |
nickjillings@1680 | 9 |
nickjillings@1680 | 10 print "serving at port", PORT |
nickjillings@1680 | 11 httpd.serve_forever() |