changeset 9632 | 16698d87ad20 |
parent 9610 | d78fe60f6bda |
child 9712 | 18b134ef294c |
--- a/mercurial/util.py Wed Oct 21 14:16:37 2009 +0200 +++ b/mercurial/util.py Mon Sep 21 19:21:32 2009 +0200 @@ -335,7 +335,8 @@ elif main_is_frozen(): set_hgexecutable(sys.executable) else: - set_hgexecutable(find_exe('hg') or 'hg') + exe = find_exe('hg') or os.path.basename(sys.argv[0]) + set_hgexecutable(exe) return _hgexecutable def set_hgexecutable(path):