Skip to content

Commit d9a9a3a

Browse files
committed
Fix plugin reloading checks
1 parent d4f76ac commit d9a9a3a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cloudbot/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def load_plugin(self, path):
165165
return
166166

167167
# make sure to unload the previously loaded plugin from this path, if it was loaded.
168-
if file_path in self.plugins:
168+
if str(file_path) in self.plugins:
169169
yield from self.unload_plugin(file_path)
170170

171171
module_name = "plugins.{}".format(title)

plugins/core/plugin_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def pluginload(bot, text, reply):
5656
def pluginunload(bot, text):
5757
"""<plugin path> - Unload <plugin> manually"""
5858
manager = bot.plugin_manager
59-
path = Path(text.strip()).resolve()
59+
path = str(Path(text.strip()).resolve())
6060
is_loaded = path in manager.plugins
6161

6262
if not is_loaded:

0 commit comments

Comments
 (0)