equal
deleted
inserted
replaced
23 pass |
23 pass |
24 return rcs |
24 return rcs |
25 |
25 |
26 def systemrcpath(): |
26 def systemrcpath(): |
27 path = [] |
27 path = [] |
28 if sys.platform == 'plan9': |
28 if pycompat.sysplatform == 'plan9': |
29 root = 'lib/mercurial' |
29 root = 'lib/mercurial' |
30 else: |
30 else: |
31 root = 'etc/mercurial' |
31 root = 'etc/mercurial' |
32 # old mod_python does not set sys.argv |
32 # old mod_python does not set sys.argv |
33 if len(getattr(sys, 'argv', [])) > 0: |
33 if len(getattr(sys, 'argv', [])) > 0: |
36 path.extend(_rcfiles(os.path.join(p, root))) |
36 path.extend(_rcfiles(os.path.join(p, root))) |
37 path.extend(_rcfiles('/' + root)) |
37 path.extend(_rcfiles('/' + root)) |
38 return path |
38 return path |
39 |
39 |
40 def userrcpath(): |
40 def userrcpath(): |
41 if sys.platform == 'plan9': |
41 if pycompat.sysplatform == 'plan9': |
42 return [encoding.environ['home'] + '/lib/hgrc'] |
42 return [encoding.environ['home'] + '/lib/hgrc'] |
43 else: |
43 else: |
44 return [os.path.expanduser('~/.hgrc')] |
44 return [os.path.expanduser('~/.hgrc')] |
45 |
45 |
46 def termsize(ui): |
46 def termsize(ui): |