From 44131ffddc66305e3c7f663e98a98437cf2fb6d2 Mon Sep 17 00:00:00 2001 From: yo mama Date: Tue, 17 Feb 2015 23:01:08 -0800 Subject: first --- run.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 run.py (limited to 'run.py') diff --git a/run.py b/run.py new file mode 100644 index 0000000..ea67974 --- /dev/null +++ b/run.py @@ -0,0 +1,17 @@ +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) -- cgit v1.2.3-70-g09d2