# HG changeset patch # User Vadim Gelfer # Date 1147365851 25200 # Node ID 3e4a1a0739c22991e66bd40f421696af4e9410d4 # Parent fdb699b5e13269aade0a09f5f335dcf41d9db3ed# Parent 2f64cbaa1e92922ddcf38e938c0b1263700bc35e merge with crew. diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -597,6 +597,7 @@ else: def os_rcpath(): '''return default os-specific hgrc search path''' path = [] + # old mod_python does not set sys.argv if len(getattr(sys, 'argv', [])) > 0: path.extend(rcfiles(os.path.dirname(sys.argv[0]) + '/../etc/mercurial'))