view pythonServer-legacy.py @ 1414:c3c3e6820b2f

Merge
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 08 Dec 2015 12:22:18 +0000
parents 1de4c0257fa4
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()