Mercurial > web-gnusto
view server.py @ 33:8d34fb3e9108
Fixed a problem Myk reported whereby if you have Firefox's 'Search for text when I start typing' preference enabled, your keystrokes after your first one can't get to WebGnusto.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Tue, 13 May 2008 16:53:24 -0700 |
parents | 394ff157b665 |
children | de12cd84cf0a |
line wrap: on
line source
import SimpleHTTPServer import SocketServer PORT = 8000 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), Handler) print "Serving files at http://localhost:%d" % PORT httpd.serve_forever()