mercurial/scmutil.py
changeset 16436 e98460f6089d
parent 16390 4df76d5506a9
child 16455 154219f3a6a4
--- a/mercurial/scmutil.py	Fri Apr 13 10:14:59 2012 +0200
+++ b/mercurial/scmutil.py	Fri Apr 13 10:08:08 2012 +0200
@@ -437,14 +437,14 @@
     def systemrcpath():
         path = []
         if sys.platform == 'plan9':
-            root = '/lib/mercurial'
+            root = 'lib/mercurial'
         else:
-            root = '/etc/mercurial'
+            root = 'etc/mercurial'
         # old mod_python does not set sys.argv
         if len(getattr(sys, 'argv', [])) > 0:
             p = os.path.dirname(os.path.dirname(sys.argv[0]))
             path.extend(rcfiles(os.path.join(p, root)))
-        path.extend(rcfiles(root))
+        path.extend(rcfiles('/' + root))
         return path
 
     def userrcpath():