annotate pythonServer-legacy.py @ 2060:31ea66f4509d

README: paragraph on troubleshooting (copy from JavaScript Console)
author Brecht De Man <b.deman@qmul.ac.uk>
date Wed, 01 Jul 2015 11:55:08 +0100
parents c115a0b304b3
children
rev   line source
nickjillings@1541 1 import SimpleHTTPServer
nickjillings@1541 2 import SocketServer
nickjillings@1541 3
nickjillings@1541 4 PORT = 8080
nickjillings@1541 5
nickjillings@1541 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1541 7
nickjillings@1541 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1541 9
nickjillings@1541 10 print "serving at port", PORT
nickjillings@1541 11 httpd.serve_forever()