eric7/Plugins/VcsPlugins/vcsMercurial/ConfigurationPage/MercurialPage.py

branch
eric7
changeset 8522
4f263b89a293
parent 8465
59bb8fdeef1b
child 8624
5192a2592324
equal deleted inserted replaced
8521:4794215f9a3c 8522:4f263b89a293
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)

eric ide

mercurial