view pythonServer.py @ 1751:a38623c8cfc9

Better error catching when using server save to determine if the 'Save File' should be shown in browser.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 01 Jun 2015 17:00:45 +0100
parents 4d71d16c1816
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()