--- a/eric6/Plugins/PluginVcsMercurial.py Mon May 03 19:58:28 2021 +0200 +++ b/eric6/Plugins/PluginVcsMercurial.py Tue May 04 19:30:25 2021 +0200 @@ -17,7 +17,7 @@ import Preferences from Preferences.Shortcuts import readShortcuts -from VcsPlugins.vcsMercurial.HgUtilities import getConfigPath +from VcsPlugins.vcsMercurial.HgUtilities import getConfigPath, getHgExecutable import Utilities import UI.Info @@ -49,15 +49,11 @@ @return dictionary containing the data to query the presence of the executable """ - exe = 'hg' - if Utilities.isWindowsPlatform(): - exe += '.exe' - data = { "programEntry": True, "header": QCoreApplication.translate( "VcsMercurialPlugin", "Version Control - Mercurial"), - "exe": exe, + "exe": getHgExecutable(), "versionCommand": 'version', "versionStartsWith": 'Mercurial', "versionPosition": -1, @@ -77,9 +73,7 @@ """ global pluginTypename data = {} - exe = 'hg' - if Utilities.isWindowsPlatform(): - exe += '.exe' + exe = getHgExecutable() if Utilities.isinpath(exe): data[".hg"] = (pluginTypename, displayString()) data["_hg"] = (pluginTypename, displayString()) @@ -92,9 +86,7 @@ @return display string (string) """ - exe = 'hg' - if Utilities.isWindowsPlatform(): - exe += '.exe' + exe = getHgExecutable() if Utilities.isinpath(exe): return QCoreApplication.translate('VcsMercurialPlugin', 'Mercurial') else: