diff -r 82b608e352ec -r 2bbec88047dd eric6/PluginManager/PluginInstallDialog.py --- 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):