Skip to content

Commit

Permalink
Pollute sys.path a tiny bit less
Browse files Browse the repository at this point in the history
Don’t add duplicate entries, at least.
  • Loading branch information
Lord-Kamina committed Jul 17, 2024
1 parent 9bbe062 commit 77f294f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deluge/pluginmanagerbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def scan_for_plugins(self):

plugin_dirs = [str(f) for f in plugin_wheels + plugin_eggs if os.path.isfile(f)]
plugin_dirs.extend([base_dir, user_dir] + base_subdir)
sys.path.extend(plugin_dirs)
[sys.path.append(item) for item in plugin_dirs if item not in sys.path]
plugin_eps = entry_points(group=self.entry_name)
self.available_plugins = []
for ep in plugin_eps:
Expand Down

0 comments on commit 77f294f

Please sign in to comment.