11 import re |
11 import re |
12 import sys |
12 import sys |
13 |
13 |
14 from PyQt6.QtCore import QProcess, QProcessEnvironment, QCoreApplication |
14 from PyQt6.QtCore import QProcess, QProcessEnvironment, QCoreApplication |
15 |
15 |
16 import Utilities |
16 from eric7 import Utilities |
17 from Globals import isWindowsPlatform |
17 from eric7.Globals import isWindowsPlatform |
18 |
18 |
19 |
19 |
20 def getHgExecutable(): |
20 def getHgExecutable(): |
21 """ |
21 """ |
22 Function to get the full path of the Mercurial executable. |
22 Function to get the full path of the Mercurial executable. |
23 |
23 |
24 @return path of the Mercurial executable |
24 @return path of the Mercurial executable |
25 @rtype str |
25 @rtype str |
26 """ |
26 """ |
27 from Plugins.PluginVcsMercurial import VcsMercurialPlugin |
27 from eric7.Plugins.PluginVcsMercurial import VcsMercurialPlugin |
28 |
28 |
29 exe = VcsMercurialPlugin.getPreferences("MercurialExecutablePath") |
29 exe = VcsMercurialPlugin.getPreferences("MercurialExecutablePath") |
30 if not exe: |
30 if not exe: |
31 program = "hg" |
31 program = "hg" |
32 if isWindowsPlatform(): |
32 if isWindowsPlatform(): |