1136 separator = remotefsInterface.separator() if isRemote else os.sep |
1136 separator = remotefsInterface.separator() if isRemote else os.sep |
1137 |
1137 |
1138 dn = self.currentDirectory(relative=True) |
1138 dn = self.currentDirectory(relative=True) |
1139 if dn.startswith(separator): |
1139 if dn.startswith(separator): |
1140 dn = dn[1:] |
1140 dn = dn[1:] |
1141 dlg = NewPythonPackageDialog(dn, self) |
1141 dlg = NewPythonPackageDialog(dn, parent=self) |
1142 if dlg.exec() == QDialog.DialogCode.Accepted: |
1142 if dlg.exec() == QDialog.DialogCode.Accepted: |
1143 packageName = dlg.getData() |
1143 packageName = dlg.getData() |
1144 nameParts = packageName.split(".") |
1144 nameParts = packageName.split(".") |
1145 packagePath = self.project.ppath |
1145 packagePath = self.project.ppath |
1146 packageFile = "" |
1146 packageFile = "" |
1634 |
1634 |
1635 vm = ericApp().getObject("ViewManager") |
1635 vm = ericApp().getObject("ViewManager") |
1636 files = [fn for fn in files if vm.checkFileDirty(fn)] |
1636 files = [fn for fn in files if vm.checkFileDirty(fn)] |
1637 |
1637 |
1638 if files: |
1638 if files: |
1639 dlg = BlackConfigurationDialog(withProject=True) |
1639 dlg = BlackConfigurationDialog(withProject=True, parent=self) |
1640 if dlg.exec() == QDialog.DialogCode.Accepted: |
1640 if dlg.exec() == QDialog.DialogCode.Accepted: |
1641 config = dlg.getConfiguration() |
1641 config = dlg.getConfiguration() |
1642 |
1642 |
1643 formattingDialog = BlackFormattingDialog( |
1643 formattingDialog = BlackFormattingDialog( |
1644 config, files, project=self.project, action=action |
1644 config, files, project=self.project, action=action, parent=self |
1645 ) |
1645 ) |
1646 formattingDialog.exec() |
1646 formattingDialog.exec() |
1647 else: |
1647 else: |
1648 EricMessageBox.information( |
1648 EricMessageBox.information( |
1649 self, |
1649 self, |
1690 |
1690 |
1691 vm = ericApp().getObject("ViewManager") |
1691 vm = ericApp().getObject("ViewManager") |
1692 files = [fn for fn in files if vm.checkFileDirty(fn)] |
1692 files = [fn for fn in files if vm.checkFileDirty(fn)] |
1693 |
1693 |
1694 if files: |
1694 if files: |
1695 dlg = IsortConfigurationDialog(withProject=True) |
1695 dlg = IsortConfigurationDialog(withProject=True, parent=self) |
1696 if dlg.exec() == QDialog.DialogCode.Accepted: |
1696 if dlg.exec() == QDialog.DialogCode.Accepted: |
1697 config = dlg.getConfiguration() |
1697 config = dlg.getConfiguration() |
1698 |
1698 |
1699 formattingDialog = IsortFormattingDialog( |
1699 formattingDialog = IsortFormattingDialog( |
1700 config, files, project=self.project, action=action |
1700 config, files, project=self.project, action=action, parent=self |
1701 ) |
1701 ) |
1702 formattingDialog.exec() |
1702 formattingDialog.exec() |
1703 else: |
1703 else: |
1704 EricMessageBox.information( |
1704 EricMessageBox.information( |
1705 self, |
1705 self, |