eric6/Plugins/VcsPlugins/vcsMercurial/HgClient.py

changeset 8288
809d5d5ac2ba
parent 8234
fcb6b4b96274
child 8320
85af703a45b7
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgClient.py	Mon May 03 19:58:28 2021 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgClient.py	Tue May 04 19:30:25 2021 +0200
@@ -15,7 +15,7 @@
 )
 from PyQt5.QtWidgets import QDialog
 
-from .HgUtilities import prepareProcess
+from .HgUtilities import prepareProcess, getHgExecutable
 
 
 class HgClient(QObject):
@@ -85,13 +85,14 @@
         
         prepareProcess(self.__server, self.__encoding)
         
-        self.__server.start('hg', self.__serverArgs)
+        exe = getHgExecutable()
+        self.__server.start(exe, self.__serverArgs)
         serverStarted = self.__server.waitForStarted(15000)
         if not serverStarted:
             return False, self.tr(
                 'The process {0} could not be started. '
                 'Ensure, that it is in the search path.'
-            ).format('hg')
+            ).format(exe)
         
         self.__server.setReadChannel(QProcess.ProcessChannel.StandardOutput)
         ok, error = self.__readHello()

eric ide

mercurial