view pythonServer.py @ 1568:961c40e452e0

Merge from the default branch
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 16 Jun 2015 14:14:08 +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()