Mercurial > hg > webaudioevaluationtool
view pythonServer-legacy.py @ 1058:6008c26076c0
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 <BrechtDeMan@users.noreply.github.com> |
---|---|
date | Fri, 03 Jul 2015 19:50:12 +0100 |
parents | 7aa8862850ef |
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()