view pythonServer-legacy.py @ 1828:2330b4e7f96f

Python scripts: fix error which caused omission of ratings of first encountered file
author Brecht De Man <b.deman@qmul.ac.uk>
date Mon, 04 Jan 2016 11:59:21 +0100
parents 345974f8794a
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()