author | efiring@manini.soest.hawaii.edu |
Tue, 24 Jan 2006 13:59:11 +1300 | |
changeset 1635 | ae61937c61c5 |
parent 1634 | f49f602fae92 |
child 1636 | 7da32bb3d1d3 |
mercurial/util.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/util.py +++ b/mercurial/util.py @@ -544,7 +544,9 @@ else: if f.endswith(".rc")]) except OSError, inst: pass return rcs - rcpath = rcfiles(os.path.dirname(sys.argv[0]) + '/../etc/mercurial') + rcpath = [] + if len(sys.argv) > 0: + rcpath.extend(rcfiles(os.path.dirname(sys.argv[0]) + '/../etc/mercurial')) rcpath.extend(rcfiles('/etc/mercurial')) rcpath.append(os.path.expanduser('~/.hgrc')) rcpath = [os.path.normpath(f) for f in rcpath]