make reason for sys.argv change obvious in code.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Thu, 11 May 2006 09:01:32 -0700
changeset 2263 2f64cbaa1e92
parent 2262 3d48eb68f3ee
child 2265 3e4a1a0739c2
child 2267 d812d91c5a84
make reason for sys.argv change obvious in code.
mercurial/util.py
--- a/mercurial/util.py	Thu May 11 08:48:52 2006 -0700
+++ b/mercurial/util.py	Thu May 11 09:01:32 2006 -0700
@@ -597,6 +597,7 @@
     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'))