src/eric7/PipInterface/Pip.py

branch
eric7
changeset 10084
125166c6b66c
parent 9851
ec12090e9cd9
child 10101
34f74c19ed7a
child 10156
e72868c86d84
equal deleted inserted replaced
10083:62019277dd0a 10084:125166c6b66c
187 Public method to get the string for the project environment. 187 Public method to get the string for the project environment.
188 188
189 @return string for the project environment 189 @return string for the project environment
190 @rtype str 190 @rtype str
191 """ 191 """
192 if ericApp().getObject("Project").isOpen(): 192 try:
193 return self.tr("<project>") 193 project = ericApp().getObject("Project")
194 else: 194 if project.isOpen():
195 return self.tr("<project>")
196 else:
197 return ""
198 except KeyError:
195 return "" 199 return ""
196 200
197 def getVirtualenvInterpreter(self, venvName): 201 def getVirtualenvInterpreter(self, venvName):
198 """ 202 """
199 Public method to get the interpreter for a virtual environment. 203 Public method to get the interpreter for a virtual environment.

eric ide

mercurial