Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 2117:760339ccc799
fix issue 217.
fall back to fixed path if windows >= nt function not present.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Tue, 25 Apr 2006 08:37:05 -0700 |
parents | fd77b7ee4aac |
children | 635653cd73ab 9b42304d9896 |
comparison
equal
deleted
inserted
replaced
2115:fd77b7ee4aac | 2117:760339ccc799 |
---|---|
572 raise IOError(errno.EPIPE, 'Broken pipe') | 572 raise IOError(errno.EPIPE, 'Broken pipe') |
573 | 573 |
574 sys.stdout = winstdout(sys.stdout) | 574 sys.stdout = winstdout(sys.stdout) |
575 | 575 |
576 def system_rcpath(): | 576 def system_rcpath(): |
577 return [r'c:\mercurial\mercurial.ini'] | 577 try: |
578 return system_rcpath_win32() | |
579 except: | |
580 return [r'c:\mercurial\mercurial.ini'] | |
578 | 581 |
579 def os_rcpath(): | 582 def os_rcpath(): |
580 '''return default os-specific hgrc search path''' | 583 '''return default os-specific hgrc search path''' |
581 return system_rcpath() + [os.path.join(os.path.expanduser('~'), | 584 return system_rcpath() + [os.path.join(os.path.expanduser('~'), |
582 'mercurial.ini')] | 585 'mercurial.ini')] |