diff options
author | Martin Hertz <mvhertz@gmail.com> | 2021-11-05 20:58:26 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2021-11-08 19:27:24 +0000 |
commit | 7a110bd60f98f29d9e19bd17499c5c63e323b4cc (patch) | |
tree | 108f43ddcb4636a80f907e37ad7cd92e841dc985 | |
parent | d56636426e061931fdf58118487705f9746fa3fe (diff) | |
download | deluge-7a110bd60f98f29d9e19bd17499c5c63e323b4cc.tar.gz deluge-7a110bd60f98f29d9e19bd17499c5c63e323b4cc.tar.bz2 deluge-7a110bd60f98f29d9e19bd17499c5c63e323b4cc.zip |
[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
-rw-r--r-- | deluge/pluginmanagerbase.py | 4 |
1 files changed, 3 insertions, 1 deletions
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: |