Mercurial > hg > webaudioevaluationtool
changeset 10:05327691d28c
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 <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 Mar 2015 13:31:54 +0000 |
parents | 8343b2ba7ce7 |
children | 59c7ed077dd3 |
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()