Show More
@@ -241,7 +241,7 b' def hgexecutable():' | |||||
241 | _sethgexecutable(encoding.environ['EXECUTABLEPATH']) |
|
241 | _sethgexecutable(encoding.environ['EXECUTABLEPATH']) | |
242 | else: |
|
242 | else: | |
243 | _sethgexecutable(pycompat.sysexecutable) |
|
243 | _sethgexecutable(pycompat.sysexecutable) | |
244 | elif (os.path.basename( |
|
244 | elif (not pycompat.iswindows and os.path.basename( | |
245 | pycompat.fsencode(getattr(mainmod, '__file__', ''))) == 'hg'): |
|
245 | pycompat.fsencode(getattr(mainmod, '__file__', ''))) == 'hg'): | |
246 | _sethgexecutable(pycompat.fsencode(mainmod.__file__)) |
|
246 | _sethgexecutable(pycompat.fsencode(mainmod.__file__)) | |
247 | else: |
|
247 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now