equal
deleted
inserted
replaced
2 |
2 |
3 import os |
3 import os |
4 import sys |
4 import sys |
5 |
5 |
6 from . import ( |
6 from . import ( |
|
7 encoding, |
7 osutil, |
8 osutil, |
8 ) |
9 ) |
9 |
10 |
10 def _rcfiles(path): |
11 def _rcfiles(path): |
11 rcs = [os.path.join(path, 'hgrc')] |
12 rcs = [os.path.join(path, 'hgrc')] |
32 path.extend(_rcfiles('/' + root)) |
33 path.extend(_rcfiles('/' + root)) |
33 return path |
34 return path |
34 |
35 |
35 def userrcpath(): |
36 def userrcpath(): |
36 if sys.platform == 'plan9': |
37 if sys.platform == 'plan9': |
37 return [os.environ['home'] + '/lib/hgrc'] |
38 return [encoding.environ['home'] + '/lib/hgrc'] |
38 else: |
39 else: |
39 return [os.path.expanduser('~/.hgrc')] |
40 return [os.path.expanduser('~/.hgrc')] |