Mercurial > hg > webaudioevaluationtool
view pythonServer-legacy.py @ 1552:fbd8b526c97d
PythonServer now supports pseudorandom page setup using preconfigured XML files. Set the PSEUDO_PATH in the python file, it will cycle through all .xml files in there. Index based off file save number. Set the .html url to /pseudo.xml to trigger
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Sun, 28 Jun 2015 10:33:47 +0100 |
parents | 76dece6eff10 |
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()