#!/usr/bin/python
#
# Copyright (C) 2012 Codethink Limited


import os
import sys
import bottle

def application(environ, start_response):
    server_path = environ['MUSTARD_SERVER_PATH']
    project_path = environ['MUSTARD_PROJECT_PATH']

    sys.path.append(server_path)
    os.chdir(os.path.dirname(__file__))

    print server_path
    print os.path.dirname(__file__)

    import mustard
    mustard.renderer.App().run(['-p', project_path])

    return bottle.wsgi(environent, start_response)

@@ -388,16 +388,22 @@
 tard%0A   
+ app =
  mustard
@@ -467,20 +467,29 @@
 tle.
-wsgi
+default_app()
 (environ
 ent,
@@ -488,11 +488,8 @@
 iron
-ent
 , st

Call the Bottle object directly instead of using wsgi()