Mercurial > hg
changeset 2262:3d48eb68f3ee
merge with crew.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Thu, 11 May 2006 08:48:52 -0700 |
parents | 20cf545b4725 (diff) 99d6cae511f7 (current diff) |
children | 2f64cbaa1e92 fdb699b5e132 |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Thu May 11 16:19:44 2006 +0200 +++ b/mercurial/util.py Thu May 11 08:48:52 2006 -0700 @@ -597,7 +597,7 @@ def os_rcpath(): '''return default os-specific hgrc search path''' path = [] - if len(sys.argv) > 0: + if len(getattr(sys, 'argv', [])) > 0: path.extend(rcfiles(os.path.dirname(sys.argv[0]) + '/../etc/mercurial')) path.extend(rcfiles('/etc/mercurial'))