view pythonServer.py @ 2049:ce79548fb1f0

Updated #1272 and #1271 preparing for #1270
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Sat, 20 Jun 2015 14:57:14 +0100
parents c6decd1db0da
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()