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