eric6/PluginManager/PluginInstallDialog.py

changeset 8259
2bbec88047dd
parent 8243
cc717c2ae956
child 8292
54b48d756b0a
--- a/eric6/PluginManager/PluginInstallDialog.py	Wed Apr 21 17:56:12 2021 +0200
+++ b/eric6/PluginManager/PluginInstallDialog.py	Wed Apr 21 19:40:50 2021 +0200
@@ -563,10 +563,11 @@
         @param pluginFileName name of the plugin file (string)
         @param packageName name of the plugin package (string)
         """
-        if packageName in ("", "None"):
-            packageDir = None
-        else:
-            packageDir = os.path.join(destination, packageName)
+        packageDir = (
+            None
+            if packageName in ("", "None") else
+            os.path.join(destination, packageName)
+        )
         pluginFile = os.path.join(destination, pluginFileName)
         
         with contextlib.suppress(OSError, os.error):

eric ide

mercurial