@@ -0,0 +1,874 @@
+import sys%0Aimport cherrypy%0Aimport os.path%0Afrom cherrypy.lib.static import serve_file%0A%0A%0Aclass Server(object):%0A    @cherrypy.expose%0A    def index(self):%0A        return serve_file(os.path.join(current_dir, 'index.html'), content_type='text/html')%0A%0A%0Aif __name__ == '__main__':%0A    DEFAULT_PORT = 8080%0A    current_dir = os.path.dirname(os.path.abspath(__file__))%0A    port = int(sys.argv%5B1%5D) if len(sys.argv) == 2 else DEFAULT_PORT %0A    %0A    cherrypy.config.update(%7B'server.socket_port': port%7D)%0A    %0A    conf = %7B'/': %7B'tools.staticdir.on': True,%0A                  'tools.staticdir.dir': current_dir,%0A                  'tools.staticdir.content_types': %7B'html': 'text/html',%0A                                                    'js': 'text/javascript',%0A                                                    'css': 'text/css'%7D%7D%7D%0A    %0A    cherrypy.quickstart(Server(), '/', config=conf)%0A

Add server.py to remove file:// protocol security restriction.