Mercurial > hg > webaudioevaluationtool
view pythonServer.py @ 121:b1aca403bb59
Python2.py: Python server will now save received XML files and store them to the local folder 'saves'.
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Tue, 26 May 2015 18:43:30 +0100 |
parents | 05327691d28c |
children | e08f2b155d8b |
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()