annotate pythonServer.py @ 1732:7435309fd918

Paper: Setup, output, conclusion, bibliography
author Brecht De Man <b.deman@qmul.ac.uk>
date Mon, 27 Apr 2015 22:00:22 +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()