use new python script for hgweb

This commit is contained in:
Sebastian Sdorra
2012-02-12 17:13:37 +01:00
parent abd1d02b20
commit 0d8fbf250c
2 changed files with 14 additions and 16 deletions

View File

@@ -31,17 +31,13 @@
#
import os, sys
pythonPath = os.environ['SCM_PYTHON_PATH']
if len(pythonPath) > 0:
pathParts = pythonPath.split(os.pathsep)
for i in range(len(pathParts)):
sys.path.insert(i, pathParts[i])
import os
from mercurial import demandimport
from mercurial.hgweb import hgweb, wsgicgi
repositoryPath = os.environ['SCM_REPOSITORY_PATH']
from mercurial import demandimport; demandimport.enable()
from mercurial.hgweb import hgweb, wsgicgi
demandimport.enable()
application = hgweb(repositoryPath)
wsgicgi.launch(application)