equal
deleted
inserted
replaced
44 return path |
44 return path |
45 |
45 |
46 def userrcpath(): |
46 def userrcpath(): |
47 if pycompat.sysplatform == 'plan9': |
47 if pycompat.sysplatform == 'plan9': |
48 return [encoding.environ['home'] + '/lib/hgrc'] |
48 return [encoding.environ['home'] + '/lib/hgrc'] |
49 elif pycompat.sysplatform == 'darwin': |
49 elif pycompat.isdarwin: |
50 return [os.path.expanduser('~/.hgrc')] |
50 return [os.path.expanduser('~/.hgrc')] |
51 else: |
51 else: |
52 confighome = encoding.environ.get('XDG_CONFIG_HOME') |
52 confighome = encoding.environ.get('XDG_CONFIG_HOME') |
53 if confighome is None or not os.path.isabs(confighome): |
53 if confighome is None or not os.path.isabs(confighome): |
54 confighome = os.path.expanduser('~/.config') |
54 confighome = os.path.expanduser('~/.config') |