import sys import os # Change to the directory name of your app (what you gave to paster create) appdir = '$APPNAME' # Change the version number if necessary libdir = "lib/python2.5/site-packages" # If you used pip, you can shorten this to [appdir, libdir] # The rest is necessary if you used easy_install sys.path = [appdir, libdir] + ['%s/%s' % (libdir, n) for n in os.listdir(libdir) if n.endswith('.egg')] + sys.path # Workaround for latest setuptools importing mkdir os.mkdir = lambda *x:None from paste.deploy import loadapp from google.appengine.ext.webapp.util import run_wsgi_app # To switch between development and deployment versions, # edit this line or have multiple versions of this file run_wsgi_app(loadapp('config:development.ini', relative_to=appdir))