367 try: |
367 try: |
368 environmentType = typeNamesMapping[environment.environment_type] |
368 environmentType = typeNamesMapping[environment.environment_type] |
369 except KeyError: |
369 except KeyError: |
370 # Environment type was not registered or has been deactivated. |
370 # Environment type was not registered or has been deactivated. |
371 environmentType = environment.environment_type |
371 environmentType = environment.environment_type |
|
372 if environment.is_global: |
|
373 environmentType = self.tr("{0} / Global").format(environmentType) |
372 itm = QTreeWidgetItem( |
374 itm = QTreeWidgetItem( |
373 self.venvList, |
375 self.venvList, |
374 [environment.name, environmentType, environment.path], |
376 [environment.name, environmentType, environment.path], |
375 ) |
377 ) |
376 itm.setData(0, VirtualenvManagerWidget.MetadataRole, environment) |
378 itm.setData(0, VirtualenvManagerWidget.MetadataRole, environment) |