equal
deleted
inserted
replaced
287 else: |
287 else: |
288 _sethgexecutable(pycompat.sysexecutable) |
288 _sethgexecutable(pycompat.sysexecutable) |
289 elif ( |
289 elif ( |
290 not pycompat.iswindows |
290 not pycompat.iswindows |
291 and os.path.basename( |
291 and os.path.basename( |
292 pycompat.fsencode(getattr(mainmod, '__file__', b'')) |
292 pycompat.fsencode(getattr(mainmod, '__file__', '')) |
293 ) |
293 ) |
294 == b'hg' |
294 == b'hg' |
295 ): |
295 ): |
296 _sethgexecutable(pycompat.fsencode(mainmod.__file__)) |
296 _sethgexecutable(pycompat.fsencode(mainmod.__file__)) |
297 else: |
297 else: |