Show More
@@ -21,6 +21,7 def systemrcpath(): | |||
|
21 | 21 | # old mod_python does not set sys.argv |
|
22 | 22 | if len(getattr(sys, 'argv', [])) > 0: |
|
23 | 23 | p = os.path.dirname(os.path.dirname(sys.argv[0])) |
|
24 | if p != '/': | |
|
24 | 25 | path.extend(_rcfiles(os.path.join(p, root))) |
|
25 | 26 | path.extend(_rcfiles('/' + root)) |
|
26 | 27 | return path |
@@ -40,7 +40,7 def userrcpath(): | |||
|
40 | 40 | path = [os.path.join(home, 'mercurial.ini'), |
|
41 | 41 | os.path.join(home, '.hgrc')] |
|
42 | 42 | userprofile = os.environ.get('USERPROFILE') |
|
43 | if userprofile: | |
|
43 | if userprofile and userprofile != home: | |
|
44 | 44 | path.append(os.path.join(userprofile, 'mercurial.ini')) |
|
45 | 45 | path.append(os.path.join(userprofile, '.hgrc')) |
|
46 | 46 | return path |
General Comments 0
You need to be logged in to leave comments.
Login now