We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86b3d36 commit 1c2e00cCopy full SHA for 1c2e00c
src/plugin.py
@@ -71,6 +71,11 @@ def loadPluginModule(name, ignoreDeprecation=False):
71
pluginDirs = conf.supybot.directories.plugins()[:]
72
pluginDirs.append(_pluginsDir)
73
module = None
74
+
75
+ # Invalidate caches to allow new third party dependencies and plugins to be
76
+ # located without restarting the bot.
77
+ importlib.invalidate_caches()
78
79
for dir in pluginDirs:
80
try:
81
files.extend(os.listdir(dir))
0 commit comments