mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
use new python script for hgweb
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user