annotate pythonServer.py @ 1542:db0823f2210d

Bug Fix #1303 on main
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Thu, 25 Jun 2015 16:40:11 +0100
parents
children e08f2b155d8b
rev   line source
nickjillings@1542 1 import SimpleHTTPServer
nickjillings@1542 2 import SocketServer
nickjillings@1542 3
nickjillings@1542 4 PORT = 8080
nickjillings@1542 5
nickjillings@1542 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1542 7
nickjillings@1542 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1542 9
nickjillings@1542 10 print "serving at port", PORT
nickjillings@1542 11 httpd.serve_forever()