view pythonServer-legacy.py @ 1236:80b034411b89

WAC2016: Template update
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Sat, 05 Mar 2016 09:27:16 +0000
parents d2afd2ee8684
children
line wrap: on
line source
import SimpleHTTPServer
import SocketServer

PORT = 8080

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()