view pythonServer-legacy.py @ 1361:10ddee18db8d

Feature #1234: Completed fix
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 26 Jan 2016 14:20:43 +0000
parents 64541cd9265d
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()