annotate pythonServer.py @ 2000:11d394053011

Paper: comments Josh, extra section
author Brecht De Man <b.deman@qmul.ac.uk>
date Mon, 27 Apr 2015 22:18: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()