view pythonServer-legacy.py @ 1463:c660254104e3

Merge
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 25 Nov 2015 09:27:05 +0000
parents bd5cbaf775cd
children
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()