annotate pythonServer.py @ 1718:6ee92a6e1f40

Paper: Edit Intro with tool Justification
author Dave Moffat <djmoffat@users.noreply.github.com>
date Fri, 24 Apr 2015 00:11:20 +0100
parents 76978d8e93d8
children e08f2b155d8b
rev   line source
nickjillings@1679 1 import SimpleHTTPServer
nickjillings@1679 2 import SocketServer
nickjillings@1679 3
nickjillings@1679 4 PORT = 8080
nickjillings@1679 5
nickjillings@1679 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1679 7
nickjillings@1679 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1679 9
nickjillings@1679 10 print "serving at port", PORT
nickjillings@1679 11 httpd.serve_forever()