view dev_server.py @ 3:026d83327522

app should work when mounted anywhere now.
author Atul Varma <avarma@mozilla.com>
date Wed, 02 Jun 2010 21:34:40 -0700
parents 1df0b76e8076
children 4b66cf5f42bf
line wrap: on
line source

import os
import sys
from wsgiref.simple_server import make_server

import bzezpatch.app
import bzezpatch.hg

if __name__ == '__main__':
    repopath = os.path.expanduser('~/Documents/jetpack-sdk')
    hg = bzezpatch.hg.Hg(hg='hg', canonical_repo=repopath)
    app = bzezpatch.app.App(root_dir=os.getcwd(),
                            hg=hg)
    httpd = make_server('127.0.0.1', 8000, app)
    print "serving on port 8000"
    httpd.serve_forever()