Mercurial > hg > webaudioevaluationtool
annotate pythonServer.py @ 2017:4a14c8a65af2
Merge from 156:402bb0f56dc4
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Mon, 01 Jun 2015 12:56:15 +0100 |
parents | 4d71d16c1816 |
children | e08f2b155d8b |
rev | line source |
---|---|
nickjillings@1596 | 1 import SimpleHTTPServer |
nickjillings@1596 | 2 import SocketServer |
nickjillings@1596 | 3 |
nickjillings@1596 | 4 PORT = 8080 |
nickjillings@1596 | 5 |
nickjillings@1596 | 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler |
nickjillings@1596 | 7 |
nickjillings@1596 | 8 httpd = SocketServer.TCPServer(("", PORT), Handler) |
nickjillings@1596 | 9 |
nickjillings@1596 | 10 print "serving at port", PORT |
nickjillings@1596 | 11 httpd.serve_forever() |