Mercurial > hg > webaudioevaluationtool
annotate pythonServer.py @ 972:565ffb272d82
Added tag 1.0.0 for changeset 7f9da387e1ce
author | Brecht De Man <BrechtDeMan@users.noreply.github.com> |
---|---|
date | Wed, 22 Apr 2015 19:08:32 +0100 |
parents | 05327691d28c |
children | e08f2b155d8b |
rev | line source |
---|---|
nicholas@10 | 1 import SimpleHTTPServer |
nicholas@10 | 2 import SocketServer |
nicholas@10 | 3 |
nicholas@10 | 4 PORT = 8080 |
nicholas@10 | 5 |
nicholas@10 | 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler |
nicholas@10 | 7 |
nicholas@10 | 8 httpd = SocketServer.TCPServer(("", PORT), Handler) |
nicholas@10 | 9 |
nicholas@10 | 10 print "serving at port", PORT |
nicholas@10 | 11 httpd.serve_forever() |