Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cgiserver.py
blob: d4911fe74bffbb1eb5762da54c39bdefa43b5129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python

import CGIHTTPServer
import BaseHTTPServer
import webbrowser

class Handler(CGIHTTPServer.CGIHTTPRequestHandler):
    cgi_directories = ["/cgi-bin"]

PORT = 8008

httpd = BaseHTTPServer.HTTPServer(("", PORT), Handler)
print "serving at port", PORT
webbrowser.open('http://localhost:8008/siyaedit.html')
httpd.serve_forever()