equal
deleted
inserted
replaced
412 |
412 |
413 def systemrcpath(): |
413 def systemrcpath(): |
414 path = [] |
414 path = [] |
415 # old mod_python does not set sys.argv |
415 # old mod_python does not set sys.argv |
416 if len(getattr(sys, 'argv', [])) > 0: |
416 if len(getattr(sys, 'argv', [])) > 0: |
417 path.extend(rcfiles(os.path.dirname(sys.argv[0]) + |
417 p = os.path.dirname(os.path.dirname(sys.argv[0])) |
418 '/../etc/mercurial')) |
418 path.extend(rcfiles(os.path.join(p, 'etc/mercurial'))) |
419 path.extend(rcfiles('/etc/mercurial')) |
419 path.extend(rcfiles('/etc/mercurial')) |
420 return path |
420 return path |
421 |
421 |
422 def userrcpath(): |
422 def userrcpath(): |
423 return [os.path.expanduser('~/.hgrc')] |
423 return [os.path.expanduser('~/.hgrc')] |