view pythonServer-legacy.py @ 1311:797090480ab7

Made pythonServer.py executable
author Giulio Moro <giuliomoro@users.noreply.github.com>
date Sat, 20 Feb 2016 14:18:32 +0000
parents cc55cc323592
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()