annotate pythonServer.py @ 872:ca4ae613f1dd

Bug Fix #1303 on main
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Thu, 25 Jun 2015 16:40:11 +0100
parents
children e08f2b155d8b
rev   line source
nicholas@872 1 import SimpleHTTPServer
nicholas@872 2 import SocketServer
nicholas@872 3
nicholas@872 4 PORT = 8080
nicholas@872 5
nicholas@872 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nicholas@872 7
nicholas@872 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nicholas@872 9
nicholas@872 10 print "serving at port", PORT
nicholas@872 11 httpd.serve_forever()