Show More
@@ -245,11 +245,8 b' def hgexecutable():' | |||
|
245 | 245 | pycompat.fsencode(getattr(mainmod, '__file__', ''))) == 'hg'): |
|
246 | 246 | _sethgexecutable(pycompat.fsencode(mainmod.__file__)) |
|
247 | 247 | else: |
|
248 |
|
|
|
249 | if exe: | |
|
250 | _sethgexecutable(pycompat.fsencode(exe)) | |
|
251 | else: | |
|
252 | _sethgexecutable(os.path.basename(pycompat.sysargv[0])) | |
|
248 | _sethgexecutable(findexe('hg') or | |
|
249 | os.path.basename(pycompat.sysargv[0])) | |
|
253 | 250 | return _hgexecutable |
|
254 | 251 | |
|
255 | 252 | def _sethgexecutable(path): |
General Comments 0
You need to be logged in to leave comments.
Login now