view pythonServer-legacy.py @ 1368:c277da1e89ca

Merge
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 01 Feb 2016 10:38:54 +0000
parents 279930a008ca
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()