src/mercurialserver/paths.py
changeset 79 3a58a95fae2f
parent 70 abb9ed8972e0
child 165 3606d60b07e5
equal deleted inserted replaced
78:2a3407a14654 79:3a58a95fae2f
     1 # Copyright 2008-2009 LShift Ltd
     1 # Copyright 2008-2009 LShift Ltd
     2 
     2 
     3 # Crude but it will do
     3 # Crude but it will do
     4 
     4 
       
     5 import sys
       
     6 import os.path
       
     7 
       
     8 def setExePath():
       
     9     global _exePath
       
    10     _exePath = os.path.dirname(os.path.abspath(sys.argv[0]))
       
    11 
       
    12 def getExePath():
       
    13     return _exePath
       
    14 
     5 def getEtcPath():
    15 def getEtcPath():
     6     return "/etc/mercurial-server"
    16     return "/etc/mercurial-server"