view pythonServer.py @ 938:c3fe29d33643

Currently playing sample red.
author Brecht De Man <BrechtDeMan@users.noreply.github.com>
date Sat, 16 May 2015 17:52:51 +0100
parents
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()