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


import os
import sys
import bottle

sys.path = ['/srv/genivi.baserock.com/'] + sys.path
os.chdir(os.path.dirname(__file__))

import mustard.renderer

mustard.renderer.App().run()
application = bottle.default_app()

@@ -95,46 +95,129 @@
 e%0A%0As
-ys.path = %5B'/srv/g
+erver_path = os.environ%5B'MUSTARD_SERVER_PATH'%5D%0Aproject_path = os.
 en
-i
 vi
-.baserock.com/'
+ron%5B'MUSTARD_PROJECT_PATH'%5D%0A%0Asys.path = %5Bserver_path
 %5D + 
@@ -287,16 +287,22 @@
 nderer%0A%0A
+app = 
 mustard.
@@ -320,16 +320,36 @@
 p().run(
+%5B'-p', project_path%5D
 )%0Aapplic

Introduce two new environment variables for running adapter.wsgi