view pythonServer.py @ 1593:59a8370a2e97

Merge from the default branch
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 02 Jun 2015 11:24:23 +0100
parents bc550d00cb6d
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()