mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
12 lines
279 B
Python
12 lines
279 B
Python
#!/usr/bin/env python
|
|
import BaseHTTPServer
|
|
import CGIHTTPServer
|
|
|
|
server = BaseHTTPServer.HTTPServer
|
|
handler = CGIHTTPServer.CGIHTTPRequestHandler
|
|
server_address = ('localhost', 8008)
|
|
handler.cgi_directories = ['/']
|
|
|
|
httpd = server(server_address, handler)
|
|
httpd.serve_forever()
|