Mercurial > hg > webaudioevaluationtool
changeset 1691:7148c89ff426
Added Python web server to host file on port 8080. Execute 'python pythonServer.py'. In browser go to http://localhost:8080/apeTool.html
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Wed, 25 Mar 2015 13:31:54 +0000 |
parents | 1e88d042624f |
children | a4be9ea53245 |
files | pythonServer.py |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pythonServer.py Wed Mar 25 13:31:54 2015 +0000 @@ -0,0 +1,11 @@ +import SimpleHTTPServer +import SocketServer + +PORT = 8080 + +Handler = SimpleHTTPServer.SimpleHTTPRequestHandler + +httpd = SocketServer.TCPServer(("", PORT), Handler) + +print "serving at port", PORT +httpd.serve_forever()