annotate pythonServer-legacy.py @ 1528:766bff1a8f73

Update dev_main
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 22 Jul 2015 12:41:22 +0100
parents
children
rev   line source
nickjillings@1528 1 import SimpleHTTPServer
nickjillings@1528 2 import SocketServer
nickjillings@1528 3
nickjillings@1528 4 PORT = 8080
nickjillings@1528 5
nickjillings@1528 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1528 7
nickjillings@1528 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1528 9
nickjillings@1528 10 print "serving at port", PORT
nickjillings@1528 11 httpd.serve_forever()