Show More
@@ -374,6 +374,8 b' def hgexecutable():' | |||||
374 | _sethgexecutable(hg) |
|
374 | _sethgexecutable(hg) | |
375 | elif mainfrozen(): |
|
375 | elif mainfrozen(): | |
376 | _sethgexecutable(sys.executable) |
|
376 | _sethgexecutable(sys.executable) | |
|
377 | elif getattr(sys.modules['__main__'], '__file__', '').endswith('hg'): | |||
|
378 | _sethgexecutable(sys.modules['__main__'].__file__) | |||
377 | else: |
|
379 | else: | |
378 | exe = findexe('hg') or os.path.basename(sys.argv[0]) |
|
380 | exe = findexe('hg') or os.path.basename(sys.argv[0]) | |
379 | _sethgexecutable(exe) |
|
381 | _sethgexecutable(exe) |
General Comments 0
You need to be logged in to leave comments.
Login now