view server.py @ 3:6e8585c006bc

Oops, forgot to add these two files in my last commit.
author Atul Varma <varmaa@toolness.com>
date Fri, 10 Apr 2009 05:15:48 -0700
parents
children
line wrap: on
line source

import CGIHTTPServer
import BaseHTTPServer

PORT = 8000

Handler = CGIHTTPServer.CGIHTTPRequestHandler

httpd = BaseHTTPServer.HTTPServer(("", PORT), Handler)

print "Serving files at http://localhost:%d" % PORT

httpd.serve_forever()