Show More
@@ -38,8 +38,7 b' def systemrcpath():' | |||||
38 | value = util.lookupreg( |
|
38 | value = util.lookupreg( | |
39 | b'SOFTWARE\\Mercurial', None, winreg.HKEY_LOCAL_MACHINE |
|
39 | b'SOFTWARE\\Mercurial', None, winreg.HKEY_LOCAL_MACHINE | |
40 | ) |
|
40 | ) | |
41 |
if |
|
41 | if value and isinstance(value, bytes): | |
42 | return rcpath |
|
|||
43 | value = util.localpath(value) |
|
42 | value = util.localpath(value) | |
44 | for p in value.split(pycompat.ospathsep): |
|
43 | for p in value.split(pycompat.ospathsep): | |
45 | if p.lower().endswith(b'mercurial.ini'): |
|
44 | if p.lower().endswith(b'mercurial.ini'): |
General Comments 0
You need to be logged in to leave comments.
Login now