comparison 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
comparison
equal deleted inserted replaced
0:81546981cec4 1:394ff157b665
1 import SimpleHTTPServer
2 import SocketServer
3
4 PORT = 8000
5
6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
7
8 httpd = SocketServer.TCPServer(("", PORT), Handler)
9
10 print "Serving files at http://localhost:%d" % PORT
11
12 httpd.serve_forever()