annotate pythonServer.py @ 1591:bc550d00cb6d

Stash for project creator
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 01 Jun 2015 12:55:21 +0100
parents
children e08f2b155d8b
rev   line source
nickjillings@1591 1 import SimpleHTTPServer
nickjillings@1591 2 import SocketServer
nickjillings@1591 3
nickjillings@1591 4 PORT = 8080
nickjillings@1591 5
nickjillings@1591 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1591 7
nickjillings@1591 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1591 9
nickjillings@1591 10 print "serving at port", PORT
nickjillings@1591 11 httpd.serve_forever()