equal
deleted
inserted
replaced
49 |
49 |
50 def getAllowedDots(): |
50 def getAllowedDots(): |
51 return _getdefault("exceptions", "allowdots", [], |
51 return _getdefault("exceptions", "allowdots", [], |
52 lambda s: s.split(":")) |
52 lambda s: s.split(":")) |
53 |
53 |
|
54 def getUserPathIndex(): |
|
55 return _getdefault("users", "index", -1, int) |
|
56 |
54 # Work out where we are, don't use config. |
57 # Work out where we are, don't use config. |
55 def initExe(): |
58 def initExe(): |
56 global _exePath |
59 global _exePath |
57 _exePath = os.path.dirname(os.path.abspath(sys.argv[0])) |
60 _exePath = os.path.dirname(os.path.abspath(sys.argv[0])) |
58 # Fix $HOME in case of "sudo -u hg refresh-auth" |
61 # Fix $HOME in case of "sudo -u hg refresh-auth" |