You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
242 B
Python
12 lines
242 B
Python
8 years ago
|
#!/usr/bin/python
|
||
|
|
||
|
import SimpleHTTPServer
|
||
|
import SocketServer
|
||
|
|
||
|
PORT = 8000
|
||
|
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
|
||
|
httpd = SocketServer.TCPServer(("", PORT), Handler)
|
||
|
|
||
|
print "Serving at port", PORT
|
||
|
httpd.serve_forever()
|