diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-02-17 23:01:08 -0800 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-02-17 23:01:08 -0800 |
| commit | 44131ffddc66305e3c7f663e98a98437cf2fb6d2 (patch) | |
| tree | 8bd9b634df74bb343a20a295df70e9995cd423ec /run.py | |
| parent | cc873672d0a997d150770b116b2ea2c99f31b845 (diff) | |
firstoriginal
Diffstat (limited to 'run.py')
| -rw-r--r-- | run.py | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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('/<filename>') +def server_static(filename): + return static_file(filename, root=pwd) +@route('/<filepath:path>') +def server_static(filepath): + return static_file(filepath, root=pwd) +run(host='localhost', port=8080) |
