Mercurial > hg > hgpaste
diff hgpaste/factory.py @ 0:047850e4bb4c
initial version of hgpaste, http://www.coactivate.org/projects/topp-engineering/lists/topp-engineering-discussion/archive/2009/09/1252293278946
author | k0s <k0scist@gmail.com> |
---|---|
date | Mon, 07 Sep 2009 20:51:08 -0400 |
parents | |
children | f0832eb3f678 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hgpaste/factory.py Mon Sep 07 20:51:08 2009 -0400 @@ -0,0 +1,9 @@ +def make_app(global_conf, config_file): + from mercurial import demandimport; demandimport.enable() + from mercurial.hgweb.hgwebdir_mod import hgwebdir + application = hgwebdir(config_file) + return application + +if __name__ == '__main__': + app = make_app() + print app