Mercurial > hg > webaudioevaluationtool
view pythonServer-legacy.py @ 1797:08458c58606c
Automatically go to right folder when running server locally so you can drag and drop the script in Terminal (after typing 'Python').
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Fri, 03 Jul 2015 19:50:12 +0100 |
parents | c115a0b304b3 |
children |
line wrap: on
line source
import SimpleHTTPServer import SocketServer PORT = 8080 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), Handler) print "serving at port", PORT httpd.serve_forever()