From 7a110bd60f98f29d9e19bd17499c5c63e323b4cc Mon Sep 17 00:00:00 2001 From: Martin Hertz Date: Fri, 5 Nov 2021 20:58:26 +0100 Subject: [PATCH] [Plugins] Fix allow enabling any plugin Python version Properly fix allow enabling any plugin Python version, first attempted in previous commit 3433a91 Closes: deluge-torrent/deluge#316 --- deluge/pluginmanagerbase.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/pluginmanagerbase.py b/deluge/pluginmanagerbase.py index 767535805..2c1744555 100644 --- a/deluge/pluginmanagerbase.py +++ b/deluge/pluginmanagerbase.py @@ -105,7 +105,9 @@ class PluginManagerBase(object): for dirname in plugin_dirs: pkg_resources.working_set.add_entry(dirname) - self.pkg_env = pkg_resources.Environment(plugin_dirs, None) + self.pkg_env = pkg_resources.Environment( + plugin_dirs, platform=None, python=None + ) self.available_plugins = [] for name in self.pkg_env: