#!/usr/bin/python
import os
__file__=os.path.realpath(__file__)
import site
site.addsitedir('/mit/xavid/lib/python2.7/site-packages/')
site.addsitedir(os.path.dirname(__file__))

__requires__ = 'Monkey'
import pkg_resources
pkg_resources.require('Monkey')

import monkey

import sys

print >>sys.stderr,"In script:",os.path.dirname(__file__)+"/dev.cfg"

if __name__ == '__main__':
    # Load the WSGI application from the config file
    from paste.deploy import loadapp
    wsgi_app = loadapp('config:'+os.path.dirname(__file__)+'/development.ini')
    
    from bazsvn.precommit import precommit

    precommit(*sys.argv[1:])
