Submitter | Matt Harbison |
---|---|
Date | Nov. 24, 2018, 6:46 a.m. |
Message ID | <1f9de5636e5f7f4bfe2d.1543041997@Envy> |
Download | mbox | patch |
Permalink | /patch/36761/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/utils/procutil.py b/mercurial/utils/procutil.py --- a/mercurial/utils/procutil.py +++ b/mercurial/utils/procutil.py @@ -241,7 +241,7 @@ def hgexecutable(): _sethgexecutable(encoding.environ['EXECUTABLEPATH']) else: _sethgexecutable(pycompat.sysexecutable) - elif (os.path.basename( + elif (not pycompat.iswindows and os.path.basename( pycompat.fsencode(getattr(mainmod, '__file__', ''))) == 'hg'): _sethgexecutable(pycompat.fsencode(mainmod.__file__)) else: