diff -r 2a3407a14654 -r 3a58a95fae2f src/mercurialserver/paths.py --- a/src/mercurialserver/paths.py Fri Mar 06 13:30:37 2009 +0000 +++ b/src/mercurialserver/paths.py Fri Mar 06 13:41:30 2009 +0000 @@ -2,5 +2,15 @@ # 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"