view pythonServer-legacy.py @ 854:3d13f019c3e6

Bug #1300: Boxes are automatically scaled on load. Will add to 'resize' commands in the future.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 14 Sep 2015 16:25:13 +0100
parents 71fd099e9fd2
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()