Show More
@@ -569,12 +569,13 b' def hgexecutable():' | |||||
569 | Defaults to $HG or 'hg' in the search path. |
|
569 | Defaults to $HG or 'hg' in the search path. | |
570 | """ |
|
570 | """ | |
571 | if _hgexecutable is None: |
|
571 | if _hgexecutable is None: | |
572 |
|
|
572 | hg = os.environ.get('HG') | |
573 | set_hgexecutable(os.environ.get('HG')) |
|
573 | if hg: | |
|
574 | set_hgexecutable(hg) | |||
574 | elif main_is_frozen(): |
|
575 | elif main_is_frozen(): | |
575 | set_hgexecutable(sys.executable) |
|
576 | set_hgexecutable(sys.executable) | |
576 | else: |
|
577 | else: | |
577 |
se |
|
578 | set_hgexecutable(find_exe('hg', 'hg')) | |
578 | return _hgexecutable |
|
579 | return _hgexecutable | |
579 |
|
580 | |||
580 | def set_hgexecutable(path): |
|
581 | def set_hgexecutable(path): |
General Comments 0
You need to be logged in to leave comments.
Login now