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. |