Mercurial > web-gnusto
view server.py @ 1:394ff157b665
Got Gnusto to load and 'run' a story file in web content.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sat, 10 May 2008 09:29:27 -0700 |
parents | |
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()