Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
16 rader
464 B
16 rader
464 B
#!@l_prefix@/bin/python |
|
|
|
import os |
|
import sys |
|
sys.path.insert(0, "@l_prefix@/lib/mercurial") |
|
|
|
from mercurial import demandimport |
|
demandimport.enable() |
|
|
|
from mercurial.hgweb import hgweb, wsgicgi |
|
if os.getenv('HGWEB_REPO_PATH', '') != '' and os.getenv('HGWEB_REPO_NAME', '') != '': |
|
application = hgweb(os.getenv('HGWEB_REPO_PATH'), os.getenv('HGWEB_REPO_NAME')) |
|
else: |
|
application = hgweb('@l_prefix@/etc/mercurial/hgweb.cfg') |
|
wsgicgi.launch(application) |
|
|
|
|