示例#1
0
      def main():
        print "Setting up"
        ReleSounds.ready()
        server_class = BaseHTTPServer.HTTPServer
        httpd = server_class(('', PORT_NUMBER), MyHandler)
        try:
          httpd.serve_forever()
        except KeyboardInterrupt:
          pass
          httpd.server_close()

          if __name__ == '__main__':
            main()