view pythonServer.py @ 1772:1ad963eb0037

Merge into main for bug fixes
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 16 Jun 2015 14:51:44 +0100
parents 4730207bcae0
children e08f2b155d8b
line wrap: on
line source
import SimpleHTTPServer
import SocketServer

PORT = 8080

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()