view pythonServer.py @ 1635:97f23a756fe5

Merge
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 27 May 2015 16:46:43 +0100
parents a22cf46a9141
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()