1222 """ |
1222 """ |
1223 try: |
1223 try: |
1224 ericApp().getObject("UserInterface").showPreferences("pipPage") |
1224 ericApp().getObject("UserInterface").showPreferences("pipPage") |
1225 except KeyError: |
1225 except KeyError: |
1226 # we were called from outside the eric IDE |
1226 # we were called from outside the eric IDE |
1227 from eric7.Preferences.ConfigurationDialog import ( # noqa: I101 |
1227 from eric7.Preferences.ConfigurationDialog import ( # noqa: I-101 |
1228 ConfigurationDialog, |
1228 ConfigurationDialog, |
1229 ConfigurationMode, |
1229 ConfigurationMode, |
1230 ) |
1230 ) |
1231 |
1231 |
1232 dlg = ConfigurationDialog( |
1232 dlg = ConfigurationDialog( |
1834 @pyqtSlot() |
1834 @pyqtSlot() |
1835 def __createSBOMFile(self): |
1835 def __createSBOMFile(self): |
1836 """ |
1836 """ |
1837 Private slot to create a "Software Bill Of Material" file. |
1837 Private slot to create a "Software Bill Of Material" file. |
1838 """ |
1838 """ |
1839 import CycloneDXInterface # __IGNORE_WARNING_I102__ |
1839 import CycloneDXInterface # __IGNORE_WARNING_I-102__ |
1840 |
1840 |
1841 venvName = self.environmentsComboBox.currentText() |
1841 venvName = self.environmentsComboBox.currentText() |
1842 if venvName == self.__pip.getProjectEnvironmentString(): |
1842 if venvName == self.__pip.getProjectEnvironmentString(): |
1843 venvName = "<project>" |
1843 venvName = "<project>" |
1844 CycloneDXInterface.createCycloneDXFile(venvName, parent=self) |
1844 CycloneDXInterface.createCycloneDXFile(venvName, parent=self) |