Mercurial > jsm-in-web
view server.py @ 0:c50d0dd32124
Origination.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Wed, 08 Apr 2009 14:47:24 -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()