equal
deleted
inserted
replaced
434 pass |
434 pass |
435 return rcs |
435 return rcs |
436 |
436 |
437 def systemrcpath(): |
437 def systemrcpath(): |
438 path = [] |
438 path = [] |
|
439 if sys.platform == 'plan9': |
|
440 root = '/lib/mercurial' |
|
441 else: |
|
442 root = '/etc/mercurial' |
439 # old mod_python does not set sys.argv |
443 # old mod_python does not set sys.argv |
440 if len(getattr(sys, 'argv', [])) > 0: |
444 if len(getattr(sys, 'argv', [])) > 0: |
441 p = os.path.dirname(os.path.dirname(sys.argv[0])) |
445 p = os.path.dirname(os.path.dirname(sys.argv[0])) |
442 path.extend(rcfiles(os.path.join(p, 'etc/mercurial'))) |
446 path.extend(rcfiles(os.path.join(p, root))) |
443 path.extend(rcfiles('/etc/mercurial')) |
447 path.extend(rcfiles(root)) |
444 return path |
448 return path |
445 |
449 |
446 def userrcpath(): |
450 def userrcpath(): |
447 return [os.path.expanduser('~/.hgrc')] |
451 if sys.platform == 'plan9': |
|
452 return [os.environ['home'] + '/lib/hgrc'] |
|
453 else: |
|
454 return [os.path.expanduser('~/.hgrc')] |
448 |
455 |
449 else: |
456 else: |
450 |
457 |
451 _HKEY_LOCAL_MACHINE = 0x80000002L |
458 _HKEY_LOCAL_MACHINE = 0x80000002L |
452 |
459 |