Skip to content

Instantly share code, notes, and snippets.

@lxneng
Created April 10, 2012 04:50
Show Gist options
  • Save lxneng/2348372 to your computer and use it in GitHub Desktop.
Save lxneng/2348372 to your computer and use it in GitHub Desktop.
import os
from os.path import dirname
install_dir = dirname(dirname(__file__))
# Load the application
from paste.deploy import loadapp
application = loadapp('config:' + os.path.join(install_dir, 'production.ini'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment