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.
17 lines
313 B
17 lines
313 B
3 months ago
|
#!/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()
|