##// END OF EJS Templates
scmutil: improve path calculation for install-relative RC files (issue2841)...
Matt Mackall -
r14527:5867bd6e default
parent child Browse files
Show More
@@ -414,8 +414,8 b" if os.name != 'nt':"
414 path = []
414 path = []
415 # old mod_python does not set sys.argv
415 # old mod_python does not set sys.argv
416 if len(getattr(sys, 'argv', [])) > 0:
416 if len(getattr(sys, 'argv', [])) > 0:
417 path.extend(rcfiles(os.path.dirname(sys.argv[0]) +
417 p = os.path.dirname(os.path.dirname(sys.argv[0]))
418 '/../etc/mercurial'))
418 path.extend(rcfiles(os.path.join(p, 'etc/mercurial')))
419 path.extend(rcfiles('/etc/mercurial'))
419 path.extend(rcfiles('/etc/mercurial'))
420 return path
420 return path
421
421
General Comments 0
You need to be logged in to leave comments. Login now