Example #1
0
File: web.py Project: wisions/mPsy
def main(q=None,r=None):
    HOST, PORT = '', 5000
    if len(sys.argv) > 1: HOST = sys.argv[1]
    if len(sys.argv) > 2: PORT = int(sys.argv[2])
    httpd = HTTPServer((HOST,PORT), VPRequestHandler)
    httpd.q = q
    httpd.r = r
    httpd.serve_forever()