from bottle import * import os pwd = os.getcwd() @route('/') def server_static(): return static_file('index.html', root=pwd ) from bottle import static_file @route('/') def server_static(filename): return static_file(filename, root=pwd) @route('/') def server_static(filepath): return static_file(filepath, root=pwd) run(host='localhost', port=8080)