import sys os Bottle sys path var www sys path os chdir os path dirnam

1
2
3
4
5
6
7
8
import sys, os, Bottle
sys.path = ['/var/www/']+sys.path
os.chdir(os.path.dirname(__file__))
import app # This loads your application
application = Bottle.default_app()