view pythonServer.py @ 1628:244ca9c8546d

If projectReturn is specified as a url it will return to that server. Currently only tested using the localHost server on port 8000, as per the python2.py server included
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 26 May 2015 18:47:59 +0100
parents 45d3860b350a
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()