annotate pythonServer-legacy.py @ 2202:61c8e13f1e2e

Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool
author www-data <www-data@sucuk.dcs.qmul.ac.uk>
date Fri, 08 Apr 2016 13:20:54 +0100
parents c07b9e2312ba
children
rev   line source
n@1090 1 import SimpleHTTPServer
n@1090 2 import SocketServer
n@1090 3
n@1090 4 PORT = 8080
n@1090 5
n@1090 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
n@1090 7
n@1090 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
n@1090 9
n@1090 10 print "serving at port", PORT
n@1090 11 httpd.serve_forever()