view pythonServer.py @ 10:05327691d28c

Added Python web server to host file on port 8080. Execute 'python pythonServer.py'. In browser go to http://localhost:8080/apeTool.html
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Wed, 25 Mar 2015 13:31:54 +0000
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()