src/mercurialserver/paths.py
author Paul Crowley <paul@lshift.net>
Wed, 14 Oct 2009 17:06:53 +0100
changeset 131 e8bf13d06582
parent 79 3a58a95fae2f
child 165 3606d60b07e5
permissions -rw-r--r--
Assume they have SSH set up; talk about hgadmin first

# Copyright 2008-2009 LShift Ltd

# Crude but it will do

import sys
import os.path

def setExePath():
    global _exePath
    _exePath = os.path.dirname(os.path.abspath(sys.argv[0]))

def getExePath():
    return _exePath

def getEtcPath():
    return "/etc/mercurial-server"