Skip to content

Instantly share code, notes, and snippets.

View hitezh's full-sized avatar

Hitesh Sarda hitezh

View GitHub Profile
@hitezh
hitezh / passenger_wsgi.py
Created June 13, 2011 15:47
Bottle on Dreamhost
# Detailed explanation at http://hitesh.in/2011/running-a-bottle-py-app-on-dreamhost/
#1. Add current directory to path, if isn't already
import os, sys
cmd_folder = os.path.dirname(os.path.abspath(__file__))
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder)
import bottle
from bottle import route, run