annotate pythonServer-legacy.py @ 1476:7f1932264b01

test_create: Exports to XML with instructions.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Thu, 03 Dec 2015 16:58:56 +0000
parents bc074d4ee760
children
rev   line source
nickjillings@1450 1 import SimpleHTTPServer
nickjillings@1450 2 import SocketServer
nickjillings@1450 3
nickjillings@1450 4 PORT = 8080
nickjillings@1450 5
nickjillings@1450 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1450 7
nickjillings@1450 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1450 9
nickjillings@1450 10 print "serving at port", PORT
nickjillings@1450 11 httpd.serve_forever()