view pythonServer.py @ 1613:207a14aac2c6

Merge
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Sun, 17 May 2015 21:37:08 +0100
parents e5f1caa513d8
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()