139 pip.installPackages(["mercurial"], interpreter=sys.executable) |
139 pip.installPackages(["mercurial"], interpreter=sys.executable) |
140 self.installButton.setEnabled(not self.__mercurialInstalled()) |
140 self.installButton.setEnabled(not self.__mercurialInstalled()) |
141 |
141 |
142 def __mercurialInstalled(self): |
142 def __mercurialInstalled(self): |
143 """ |
143 """ |
144 Private method to check, if mercurial is installed alongside eric7. |
144 Private method to check, if Mercurial is installed alongside eric7. |
|
145 |
|
146 @return flag indicating an installed Mercurial executable |
|
147 @rtype bool |
145 """ |
148 """ |
146 hg = HgUtilities.getHgExecutable() |
149 hg = HgUtilities.getHgExecutable() |
147 # assume local installation, if the path is absolute |
150 # assume local installation, if the path is absolute |
148 return os.path.isabs(hg) |
151 return os.path.isabs(hg) |