view pythonServer.py @ 1558:2c5fd2330055

Implementing Features #1271 and #1272
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 16 Jun 2015 17:19:51 +0100
parents c6decd1db0da
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()