src/mercurialserver/config.py
changeset 213 72e7ba8b41a6
parent 212 ab5e0e4f5a0c
child 215 584df0f2e5c7
equal deleted inserted replaced
212:ab5e0e4f5a0c 213:72e7ba8b41a6
    26 def _getPaths(name): 
    26 def _getPaths(name): 
    27     return [os.path.expanduser(p)
    27     return [os.path.expanduser(p)
    28         for p in _getConf()["paths"][name].split(":")]
    28         for p in _getConf()["paths"][name].split(":")]
    29 
    29 
    30 def getReposPath(): return _getPath("repos")
    30 def getReposPath(): return _getPath("repos")
       
    31 def getAuthorizedKeysPath(): return _getPath("authorized_keys")
    31 
    32 
    32 def getKeysPaths(): return _getPaths("keys")
    33 def getKeysPaths(): return _getPaths("keys")
    33 def getAccessPaths(): return _getPaths("access")
    34 def getAccessPaths(): return _getPaths("access")
    34 
    35 
    35 def getEnv(): return _getConf()["env"]
    36 def getEnv(): return _getConf()["env"]