#!/usr/bin/python from BaseHTTPServer import * from CGIHTTPServer import * port = 8000 CGIHTTPRequestHandler.cgi_directories.append('') print CGIHTTPRequestHandler.cgi_directories httpd = HTTPServer(('',port),CGIHTTPRequestHandler) httpd.serve_forever()