src/eric7/CondaInterface/Conda.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9576
be9f8e7e42e0
diff -r 0b936ff1bbb9 -r a2bc06a54d9d src/eric7/CondaInterface/Conda.py
--- a/src/eric7/CondaInterface/Conda.py	Sun Nov 06 11:22:39 2022 +0100
+++ b/src/eric7/CondaInterface/Conda.py	Mon Nov 07 17:19:58 2022 +0100
@@ -489,6 +489,8 @@
 
         Note: only one of name or prefix must be given.
         """
+        from eric7.UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
+
         if name and prefix:
             raise RuntimeError("Only one of 'name' or 'prefix' must be given.")
 
@@ -496,10 +498,6 @@
             raise RuntimeError("One of 'name' or 'prefix' must be given.")
 
         if packages:
-            from eric7.UI.DeleteFilesConfirmationDialog import (
-                DeleteFilesConfirmationDialog,
-            )
-
             dlg = DeleteFilesConfirmationDialog(
                 self.parent(),
                 self.tr("Uninstall Packages"),

eric ide

mercurial