You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
313 B
16 lines
313 B
#!/usr/bin/env python
|
|
|
|
import SimpleHTTPServer
|
|
import SocketServer
|
|
|
|
# minimal web server. serves files relative to the
|
|
# current directory.
|
|
|
|
PORT = 8000
|
|
|
|
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
|
|
|
|
httpd = SocketServer.TCPServer(("", PORT), Handler)
|
|
|
|
print "serving at port", PORT
|
|
httpd.serve_forever()
|
|
|